SoReadError(3)

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

πŸ’– SoReadError πŸ’–

okay bestie, welcome to the SoReadError page β€” it's a manual page for the Coin library, section 3 (that's library functions, iykyk). buckle up, it's giving "error class that handles model imports" and honestly? kinda iconic.


✨ NAME ✨

SoReadError β€” the SoReadError class is used during model import operations. that's it, that's the vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <Inventor/errors/SoReadError.h>

Inherits SoError. yes queen, it's a whole family tree situation. πŸ‘‘

πŸ’… Public Member Functions

  • virtual SoType getTypeId (void) const β€” gives you back the type id, fr fr

🫢 Public Member Functions inherited from SoError

  • virtual ~SoError () β€” the destructor, she cleans up after herself
  • const SbString & getDebugString (void) const β€” hands you the debug string
  • SbBool isOfType (const SoType type) const β€” asks "are you that type, bestie?"

🌈 Static Public Member Functions

  • static void setHandlerCallback (SoErrorCB *const function, void *const data) β€” sets up your handler callback
  • static SoErrorCB * getHandlerCallback (void) β€” gets the handler callback back
  • static void * getHandlerData (void) β€” gets the handler data
  • static SoType getClassTypeId (void) β€” the class-level type id
  • static void post (const SoInput *const input, const char *const format,...) β€” posts an error/warning message
  • static void initClass (void) β€” sets the class up

✨ Static Public Member Functions inherited from SoError

  • static void setHandlerCallback (SoErrorCB *const func, void *const data) β€” sets the handler callback
  • static SoErrorCB * getHandlerCallback (void) β€” gets the handler callback
  • static void * getHandlerData (void) β€” gets the handler data
  • static SoType getClassTypeId (void) β€” the class type id
  • static void post (const char *const format,...) β€” posts a message
  • static SbString getString (const SoNode *const node) β€” string from a node
  • static SbString getString (const SoPath *const path) β€” string from a path
  • static SbString getString (const SoEngine *const engine) β€” string from an engine
  • static void initClass (void) β€” init that class
  • static void initClasses (void) β€” init all the classes, plural era

πŸŽ€ Protected Member Functions

  • virtual SoErrorCBPtr getHandler (void *&data) const β€” the handler getter, protected tho

🧚 Protected Member Functions inherited from SoError

  • void setDebugString (const char *const str) β€” sets the debug string
  • void appendToDebugString (const char *const str) β€” appends to the debug string
  • void handleError (void) β€” handles the error

πŸ’œ Additional Inherited Members

⭐ Static Protected Member Functions inherited from SoError

  • static void defaultHandlerCB (const SoError *error, void *userdata) β€” the default handler callback, the OG fallback

πŸ¦‹ Detailed Description πŸ¦‹

the SoReadError class is used during model import operations. no cap.

during model file import, this class will be used to output any error or warning messages. she's literally the messenger. πŸ’Œ

depending on your application, setting up your own error handler callbacks for SoReadError might be a good idea. lowkey a great idea actually, do it for yourself. 🫢


πŸ’– Member Function Documentation πŸ’–

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

this method returns the SoType of a particular object instance. it's giving "who am I, really?" energy. πŸͺž

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. yes bestie, we're calling out the messy files. πŸ“’

the messages will be wrapped within information on line number, file offset etc. so you get the receipts. 🧾✨

πŸŽ€ SoErrorCB * SoReadError::getHandler (void *& data) const [protected], [virtual]

this is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. she's a shortcut, and honestly? we love a shortcut. πŸ’…

Reimplemented from SoError.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. not me getting auto-generated by Doxygen, that's main character energy fr fr. 😭✨


okay that's the whole page bestie, every flag, every signature, every inherited member β€” all of it, preserved, slayed, periodt. πŸ’…

this was Coin, Version 3.1.3, section SoReadError(3) β€” mwah, take care of her, and go set up those error handler callbacks like I told you. πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from