ScXMLDataElt(3)
π ScXMLDataElt π
okay bestie, welcome to the ScXMLDataElt(3) page, straight outta the Coin manual β¨ this is the one about the <data> SCXML element and honestly? it's giving variable storage icon behavior π
π NAME π
ScXMLDataElt β the <data> SCXML element. periodt.
πΈ SYNOPSIS πΈ
#include <Inventor/scxml/ScXMLDataElt.h>
Inherits ScXMLElt.
π Public Member Functions
virtual SoType getTypeId (void) constβ hands you the type identification of an object derived from a class inheritingSoBase. it's what runtime type checking and "downward" casting run on, no cap.virtual void setIDAttribute (const char *ID)virtual const char * getIDAttribute (void) constvirtual void setSrcAttribute (const char *src)virtual const char * getSrcAttribute (void) constvirtual void setExprAttribute (const char *expr)virtual const char * getExprAttribute (void) constvirtual SbBool handleXMLAttributes (void)virtual void copyContents (const ScXMLElt *rhs)virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constvirtual void setValueObj (ScXMLDataObj *value)virtual ScXMLDataObj * getValueObj (void) const
π¦ 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. slay.
β¨ 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 * IDchar * srcchar * exprScXMLDataObj * value
π§ 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 π
the <data> SCXML element. that's the whole vibe of this class, fr fr.
The <data> SCXML element is for storing variables. π They need to be contained within a <datamodel> element. <data> elements are only functional in state machines with a profile that has an implementation of the Data Module. The "minimum" profile does not, but the "x-coin" profile does. (so pick your profile wisely bestie, it's lowkey a whole thing π)
The following attributes are accepted:
IDsrcβ not supported πexpr
The ID attribute is required and specifies the variable name. The variable name must be unique for the whole SCXML state machine specification. (yes, the whole thing, don't be messy π
)
The src attribute is not supported. like, at all. moving on.
The expr attribute specifies the value of the variable. The attribute is evaluated based on which profile the state machine is using.
The value of the <data> variable can be changed through the use of <assign> elements, and their values can be passed on to other systems through the use of the <send> element in the External Communications Module. π₯
- Since β Coin 4.0
- See also β
ScXMLDataModelElt,ScXMLAssignElt,ScXMLSendElt
π Member Function Documentation π
πΈ SoType ScXMLDataElt::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 ScXMLDataElt::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 β
TRUEif the attributes are OK, andFALSEon error.
This base class implementation does nothing and just returns TRUE. (iconic minimal effort behavior honestly β¨)
- Reimplemented from β
ScXMLElt.
π void ScXMLDataElt::copyContents (const ScXMLElt * rhs) [virtual]
- Reimplemented from β
ScXMLElt.
π const ScXMLElt * ScXMLDataElt::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. π
This function needs to be reimplemented to traverse child elements.
- Reimplemented from β
ScXMLElt.
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human, just a very diligent robot π«Ά)
okay that's the whole page bestie, you ate that π
β¨ this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and yes it's ScXMLDataElt(3) in the Coin manual, so go forth and store those variables responsibly, mwah ππ¦πΈ
π¦ 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