SoReadError(3)
π 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 theSoTypefor 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms