ScXMLDataModelElt(3)
π ScXMLDataModelElt π
okay bestie, welcome to the Coin manual, section 3 β yes this is a <datamodel> page and yes it's iconic π«Ά
πΈ NAME πΈ
ScXMLDataModelElt β the glow-up that implements the <datamodel> SCXML element. periodt.
β¨ SYNOPSIS β¨
#include <Inventor/scxml/ScXMLDataModelElt.h>
Inherits ScXMLElt. (yes, it's giving family tree π)
π Public Member Functions
virtual SoType getTypeId (void) constβ hands you the type identification of an object derived from a class inheritingSoBase. this is the whole reason runtime type checking and downward "casting" even work, no cap.virtual void setSchemaAttribute (const char *schema)β sets the schema attribute.virtual const char * getSchemaAttribute (void) constβ gives the schema attribute back.virtual SbBool handleXMLAttributes (void)β handles the XML attributes.virtual void copyContents (const ScXMLElt *rhs)β copies the contents over.virtual int getNumData (void) constβ how many data things do we have.virtual ScXMLDataElt * getData (int idx) constβ gimme the data at idx.virtual void addData (ScXMLDataElt *data)β add a data element.virtual void removeData (ScXMLDataElt *data)β remove a data element.virtual void clearAllData (void)β wipe every last one of them πvirtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constβ searches for a match.
π¦ Public Member Functions inherited from ScXMLElt
void setXMLAttribute (const char *attribute, const char *value)const char * getXMLAttribute (const char *attribute) constScXMLElt * clone (void) constvirtual void setContainer (ScXMLElt *container)ScXMLElt * getContainer (void) constSbBool isContainedIn (const ScXMLElt *object) const
π Public Member Functions inherited from ScXMLObject
SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either of the same type or inherited from type.
β Static Public Member Functions
static ScXMLEltReader * getElementReader (void)static SoType getClassTypeId (void)static void * createInstance (void)static void initClass (void)static void cleanClass (void)
π Static Public Member Functions inherited from ScXMLElt
static SoType getClassTypeId (void)static void initClass (void)static void cleanClass (void)
πΈ Static Public Member Functions inherited from ScXMLObject
static SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class.static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static void cleanClass (void)β does the opposite ofinitClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system.
π Protected Attributes
char * schemaβ yes it's a raw char pointer, we don't make the rules.
π§ Additional Inherited Members
Static Protected Member Functions inherited from ScXMLElt:
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)
Static Protected Member Functions inherited from ScXMLObject:
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 π
implements the <datamodel> SCXML element. that's the whole vibe, bestie β that's the assignment and it ate. β¨
π Member Function Documentation π
π SoType ScXMLDataModelElt::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
See also: SoBase::getTypeId() const
Implements ScXMLElt.
π SbBool ScXMLDataModelElt::handleXMLAttributes (void ) [virtual]
This method is called when the file reader has set all the XML attributes on the object, and wants the object to handle them and report if the values were OK or if a read error should be produced.
Returns: TRUE if the attributes are OK, and FALSE on error.
This base class implementation does nothing and just returns TRUE. (lowkey the chillest function on the page, it literally just vibes π)
Reimplemented from ScXMLElt.
π void ScXMLDataModelElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLElt.
π const ScXMLElt * ScXMLDataModelElt::search (const char * attrname, const char * attrvalue) const [virtual]
This method searches the SCXML structure for an element with the given attribute value for the given attribute.
Returns NULL if nothing was found.
bestie listen β this function needs to be reimplemented to traverse child elements. like, if you don't do it, it's not gonna do it for you. fr fr.
Reimplemented from ScXMLElt.
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. (not me writing fanfic about a C++ class, it's the robot π)
and that's the whole page, mwah π β this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's ScXMLDataModelElt(3). slay, go read the source, ily πβ¨
π¦ 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