SoReadError(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸŽ€ SoReadError(3) πŸŽ€

okay so bestie, welcome to the SoReadError(3) page from the Library Functions Manual β€” yes, that one. this is the class that carries the whole model-import error situation on her back, and she does it flawlessly. πŸ’…


✨ NAME ✨

SoReadError β€” the SoReadError class is used during model import operations.


🌸 SYNOPSIS 🌸

#include <Inventor/errors/SoReadError.h>

Inherits SoError.

πŸ’œ Public Member Functions

  • virtual SoType getTypeId (void) const

πŸ¦‹ Public Member Functions inherited from SoError

  • virtual ~SoError ()
  • const SbString & getDebugString (void) const
  • SbBool isOfType (const SoType type) const

πŸ’– Static Public Member Functions

  • static void setHandlerCallback (SoErrorCB *const function, void *const data)
  • static SoErrorCB * getHandlerCallback (void)
  • static void * getHandlerData (void)
  • static SoType getClassTypeId (void)
  • static void post (const SoInput *const in, const char *const format,...)
  • static void initClass (void)

🌈 Static Public Member Functions inherited from SoError

  • static void setHandlerCallback (SoErrorCB *const func, void *const data)
  • static SoErrorCB * getHandlerCallback (void)
  • static void * getHandlerData (void)
  • static SoType getClassTypeId (void)
  • static void post (const char *const format,...)
  • static SbString getString (const SoNode *const node)
  • static SbString getString (const SoPath *const path)
  • static SbString getString (const SoEngine *const engine)
  • static void initClass (void)
  • static void initClasses (void)

🧚 Protected Member Functions

  • virtual SoErrorCBPtr getHandler (void *&data) const

πŸ“ Protected Member Functions inherited from SoError

  • void setDebugString (const char *const str)
  • void appendToDebugString (const char *const str)
  • void handleError (void)

⭐ Additional Inherited Members

πŸ’« Static Protected Member Functions inherited from SoError

  • static void defaultHandlerCB (const SoError *error, void *userdata)

πŸ¦‹ Detailed Description πŸ¦‹

The SoReadError class is used during model import operations. that's her whole thing, she's booked and busy ✨

During model file import, this class will be used to output any error or warning messages.

Depending on your application, setting up your own error handler callbacks for SoReadError might be a good idea. lowkey recommended, ngl β€” do it.


πŸ’… Member Function Documentation πŸ’…

🌟 SoType SoReadError::getTypeId (void ) const [virtual]

This method returns the SoType of a particular object instance.

See also: getClassTypeId()

Reimplemented from SoError.


🌟 void SoReadError::post (const SoInput *const in, const char *const format, ...) [static]

Method used from import code to post error or warning messages for model files which are not 100% compliant to the format specification. the messy files, the chaotic ones, the ones that didn't read the assignment 😭

The messages will be wrapped within information on line number, file offset etc. so you actually know where the drama happened. πŸ•΅οΈβ€β™€οΈ

References SoError::appendToDebugString(), SoError::defaultHandlerCB(), SoInput::getLocationString(), SbString::getString(), SoError::handleError(), SoError::setDebugString(), and SbString::vsprintf().

Referenced by SoInput::openFile(), SoInput::pushFile(), SoBase::read(), SoDB::read(), SoDB::read(), SoField::read(), SoFieldData::read(), SoInput::read(), SoInput::read(), SoInput::read(), SoGroup::readChildren(), SoField::readConnection(), SoFieldData::readFieldDescriptions(), SoBumpMap::readInstance(), SoImage::readInstance(), SoTexture2::readInstance(), SoTextureCubeMap::readInstance(), SoVRMLImageTexture::readInstance(), SoFile::readNamedFile(), and SoBase::readRoute().

not me listing SoDB::read() twice and SoInput::read() three times β€” bestie that's exactly how the original lists them, so they stay. no cap. 🫢

🌟 SoErrorCB * SoReadError::getHandler (void *& data) const [protected], [virtual]

This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. she's simple, she's cute, she's a wrapper πŸ’–

Reimplemented from SoError.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. not a human author, a robot did this and honestly? slayed πŸ€–βœ¨


and that's the whole page, bestie!! πŸŽ€ the footer energy was giving Coin, Version 2.5.0, and SoReadError(3) β€” so if you need to cite your source, that's the vibe check right there. go forth and handle your import errors like the main character you are. πŸ’…πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from