ScXMLScxmlElt(3)

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

✨ ScXMLScxmlElt ✨

okay bestie, welcome to the Coin manual page for ScXMLScxmlElt, straight out of the Coin library (yes that's the manual name, we're in section 3, we move) πŸ’…


πŸ’– NAME πŸ’–

ScXMLScxmlElt β€” bestie, it implements the <scxml> SCXML element. that's the whole job. that's her whole thing. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <Inventor/scxml/ScXMLScxmlElt.h>

Inherits ScXMLElt.

πŸŽ€ Public Member Functions πŸŽ€

  • virtual SoType getTypeId (void) const β€” Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and downward"casting.
  • void setIsReferenced (SbBool referenced) β€” sets whether this thing is referenced, fr.
  • SbBool isReferenced (void) const β€” asks her: are you referenced? yes or no.
  • virtual void setInitialAttribute (const char *initial) β€” sets the initial attribute.
  • const char * getInitialAttribute (void) const β€” hands you back the initial attribute.
  • virtual void setNameAttribute (const char *name) β€” sets the name attribute.
  • const char * getNameAttribute (void) const β€” gives you the name attribute.
  • virtual void setXMLNSAttribute (const char *xmlns) β€” sets the xmlns attribute.
  • const char * getXMLNSAttribute (void) const β€” returns the xmlns attribute.
  • virtual void setVersionAttribute (const char *version) β€” sets the version attribute.
  • const char * getVersionAttribute (void) const β€” returns the version attribute.
  • virtual void setProfileAttribute (const char *profile) β€” sets the profile attribute.
  • const char * getProfileAttribute (void) const β€” returns the profile attribute.
  • virtual void setExModeAttribute (const char *exmode) β€” sets the exmode attribute.
  • const char * getExModeAttribute (void) const β€” returns the exmode attribute.
  • virtual SbBool handleXMLAttributes (void) β€” the callback the file reader hits once it's shoved all the XML attributes onto the object.
  • virtual void copyContents (const ScXMLElt *rhs) β€” copies the contents over from rhs.
  • virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) const β€” hunts through the SCXML structure for an element with the given attribute value for the given attribute.
  • virtual void setInitial (ScXMLInitialElt *initial) β€” sets the initial element.
  • virtual ScXMLInitialElt * getInitial (void) const β€” gets the initial element.
  • virtual int getNumStates (void) const β€” how many states we got.
  • virtual ScXMLStateElt * getState (int idx) const β€” grab state number idx.
  • virtual void addState (ScXMLStateElt *state) β€” add a state, periodt.
  • virtual void removeState (ScXMLStateElt *state) β€” remove a state.
  • virtual void clearAllStates (void) β€” wipe every state, no survivors.
  • virtual int getNumParallels (void) const β€” how many parallels.
  • virtual ScXMLParallelElt * getParallel (int idx) const β€” grab parallel number idx.
  • virtual void addParallel (ScXMLParallelElt *state) β€” add a parallel.
  • virtual void removeParallel (ScXMLParallelElt *state) β€” remove a parallel.
  • virtual void clearAllParallels (void) β€” bye bye parallels.
  • virtual int getNumFinals (void) const β€” how many finals.
  • virtual ScXMLFinalElt * getFinal (int idx) const β€” grab final number idx.
  • virtual void addFinal (ScXMLFinalElt *state) β€” add a final.
  • virtual void removeFinal (ScXMLFinalElt *state) β€” remove a final.
  • virtual void clearAllFinals (void) β€” all the finals, gone.
  • virtual void setDataModel (ScXMLDataModelElt *datamodel) β€” set the data model.
  • virtual ScXMLDataModelElt * getDataModel (void) const β€” get the data model.
  • virtual int getNumScripts (void) const β€” how many scripts.
  • virtual ScXMLScriptElt * getScript (int idx) const β€” grab script number idx.
  • virtual void addScript (ScXMLScriptElt *state) β€” add a script.
  • virtual void removeScript (ScXMLScriptElt *state) β€” remove a script.
  • virtual void clearAllScripts (void) β€” scripts? deleted.
  • virtual void execute (ScXMLStateMachine *statemachine) const β€” run it against statemachine.

πŸ¦‹ Public Member Functions inherited from ScXMLElt πŸ¦‹

  • void setXMLAttribute (const char *attribute, const char *value)
  • const char * getXMLAttribute (const char *attribute) const
  • ScXMLElt * clone (void) const
  • virtual void setContainer (ScXMLElt *container)
  • ScXMLElt * getContainer (void) const
  • SbBool isContainedIn (const ScXMLElt *object) const

🧚 Public Member Functions inherited from ScXMLObject 🧚

  • SbBool isOfType (SoType type) const β€” Returns TRUE if 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 the SoType object 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 of initClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system.

πŸ“ Protected Attributes πŸ“

  • SbBool referenced
  • char * initial
  • char * name
  • char * xmlns
  • char * version
  • char * profile
  • char * exmode

🫢 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 <scxml> SCXML element.

An object of this type represents the root <scxml> SCXML element in a document. It has the following attributes:

  • initial
  • name
  • xmlns
  • version [REQUIRED] must contain "1.0"
  • profile
  • exmode β€” "lax" or "strict"

The <scxml> element can have child elements of the following types:

  • initial β€” zero or one element of this type, depending on whether the "initial" attribute is set or not (one of them must be set, and only one), but only when the <scxml> element is the root element and not an external reference from another document.
  • state β€” zero or more elements
  • parallel β€” zero or more elements
  • final β€” zero or more elements
  • datamodel β€” zero or one if the data model module is enabled

Since

Coin 3.0


πŸ’… Member Function Documentation πŸ’…

SoType ScXMLScxmlElt::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 ScXMLScxmlElt::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.

Reimplemented from ScXMLElt.

void ScXMLScxmlElt::copyContents (const ScXMLElt * rhs) [virtual]

Reimplemented from ScXMLElt.

const ScXMLElt * ScXMLScxmlElt::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.


okay that's the whole page, no skips, no crumbs left behind πŸ’– this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and you can find her filed under ScXMLScxmlElt(3) in the Coin manual. slay, go build a state machine bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from