SoReadError(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SoReadError β€” NAME πŸ’–

SoReadError β€” bestie, this is the class that handles error messages during model import operations. That's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/errors/SoReadError.h>

Inherits SoError.

🌸 Public Member Functions

  • virtual SoType getTypeId (void) const β€” grabs the type id for this instance, virtual so it knows what it actually is.

πŸ¦‹ Public Member Functions inherited from SoError

  • virtual ~SoError () β€” the destructor, virtual, does the cleanup thing.
  • const SbString & getDebugString (void) const β€” hands you back the debug string.
  • SbBool isOfType (const SoType type) const β€” checks whether this thing is of the given type.

πŸŽ€ Static Public Member Functions

  • static void setHandlerCallback (SoErrorCB *const function, void *const data) β€” sets the handler callback for this class.
  • static SoErrorCB * getHandlerCallback (void) β€” returns the handler callback for this class.
  • static void * getHandlerData (void) β€” returns the pointer that gets passed back to the callback.
  • static SoType getClassTypeId (void) β€” returns the SoType for the class itself.
  • static void post (const SoInput *const input, const char *const format,...) β€” the one you call from import code to post errors/warnings.
  • static void initClass (void) β€” sets the class up.

🌈 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 β€” the protected handler-getter, virtual.

🫢 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 it, that's the job. πŸ’–

When you're importing a model file, this class is the one that outputs any error or warning messages. It's giving loudspeaker for your file loader. πŸ“’

Depending on your application, setting up your own error handler callbacks for SoReadError might be a good idea. Lowkey recommended, ngl. 😌


πŸ‘‘ Member Function Documentation πŸ‘‘

🌸 void SoReadError::setHandlerCallback (SoErrorCB *const function, void *const data) [static]

This method sets the error handler callback for messages posted via this class. Cute, right? πŸŽ€

⚠️ Note that this will not override the error/debug message handler for subclasses β€” those will have to be overridden by calling the subclass' setHandlerCallback() method. Do not skip this, bestie, or your subclass will be out here doing its own thing. 😭

See also: defaultHandlerCB()

πŸ¦‹ SoErrorCB * SoReadError::getHandlerCallback (void ) [static]

Returns the error handler callback for messages posted via this class. ✨

πŸ’œ void * SoReadError::getHandlerData (void ) [static]

This method returns the pointer used for passing data back to the callback handler method. It's the little data handoff. 🫢

⭐ SoType SoReadError::getClassTypeId (void ) [static]

This static method returns the SoType for this class. The class-level type id, not the instance one.

See also: getTypeId()

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

This method returns the SoType of a particular object instance. Instance-specific, periodt.

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. Like, the file is trying its best but it's not exactly following the rules, you know? πŸ™ˆ

The messages will be wrapped within information on line number, file offset etc. So your users actually get useful context instead of a mystery. πŸ’…

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

This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. Two-for-one, iconic. πŸ‘‘

Reimplemented from SoError.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for Coin from the source code. Not a human, just a very diligent robot. πŸ€–βœ¨


okay bestie that's the whole page!! πŸ’–βœ¨πŸŽ€

This was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's the SoReadError(3) page from the Coin manual. Love u, go read your model files responsibly. πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from