ScXMLObject(3)
π ScXMLObject(3) π
Library Functions Manual β¨ ScXMLObject
okay bestie, gather round, because today we're meeting the OG mom of the whole SCXML family β the base class that literally everything else is descended from. no cap. π
β¨ NAME β¨
ScXMLObject β the base class for all SCXML objects. like, all all. the whole bloodline. π§¬
πΈ SYNOPSIS πΈ
#include <Inventor/scxml/ScXMLObject.h>
Inherited by ScXMLEvent, ScXMLInvoke, and ScXMLStateMachine. (yes queen, the whole nepo-baby lineup π
)
π Public Member Functions π
virtual SoType getTypeId (void) const =0SbBool isOfType (SoType type) constvoid setXMLAttribute (const char *attribute, const char *value)const char * getXMLAttribute (const char *attribute) constvirtual SbBool handleXMLAttributes (void)virtual void setContainer (ScXMLObject *container)ScXMLObject * getContainer (void) constSbBool isContainedIn (const ScXMLObject *object) const
π¦ Static Public Member Functions π¦
static SoType getClassTypeId (void)static void initClass (void)
π§ Static Protected Member Functions π§
static void registerClassType (const char *xmlns, const char *classname, SoType type)static void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type)
π Detailed Description π
Base class for all SCXML objects. that's it, that's the whole vibe β she's the blueprint everyone else was built from. π
Since Coin 3.0 β vintage, but she's still serving. β
π Member Function Documentation π
π void ScXMLObject::setXMLAttribute (const char * attribute, const char * value)
This method associates a value with an attribute name. It's used for parameter passing while reading by the SCXML reader, but lowkey you can also just use it as a general-purpose attribute dictionary outside of that. π
If NULL is passed as the value, the attribute gets removed. poof. gone. π
πΈ const char * ScXMLObject::getXMLAttribute (const char * attribute) const
Returns the string value that was set for an attribute β or NULL if it wasn't set at all. no value, no problem. π
π¦ SbBool ScXMLObject::handleXMLAttributes (void ) [virtual]
This one gets called when the file reader has set all the XML attributes on the object and wants the object to, like, handle them and report back whether the values were okay or whether a read error should be produced. it's giving accountability. πβ¨
Returns TRUE if the attributes are ok, and FALSE on error.
This base class implementation does absolutely nothing and just returns TRUE. iconic minimalism, honestly. π
Reimplemented in ScXMLInvoke.
π§ void ScXMLObject::setContainer (ScXMLObject * container) [virtual]
Sets the pointer to the parent ScXML object. it's giving family tree energy. π³
β SbBool ScXMLObject::isContainedIn (const ScXMLObject * object) const
This method returns TRUE if the object is contained within the given object argument. And if they're literally the same object? still TRUE, bestie. Otherwise, FALSE is retured.
(yes, "retured" β that's the original's typo, not mine, we keep the lore intact π)
π void ScXMLObject::registerClassType (const char * xmlns, const char * classname, SoType type) [static], [protected]
Internal method. Friendly forwarding for ScXMLObject subclasses. π«Ά
π void ScXMLObject::registerInvokeClassType (const char * xmlns, const char * targettype, const char * source, SoType type) [static], [protected]
Internal method. Friendly forwarding for ScXMLObject subclasses. (yes, same energy, different signature, don't @ me π
)
π Author π
Generated automatically by Doxygen for Coin from the source code. so technically the author is a robot and not me, but I'm the one explaining it with love. π
okay that's the whole page!! Coin, Version 3.1.3 β and yes, ScXMLObject(3) β that's the manual section she lives in, periodt. π
β¨ go forth and subclass responsibly, bestie!! π¦π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms