ScXMLStateElt(3)

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

πŸŽ€ ScXMLStateElt πŸ’–πŸ’…

okay so bestie, welcome to another page of the Coin manual β€” that's section 3, the library-functions zone, iykyk β€” and today's main character is ScXMLStateElt. She implements the <state> SCXML element. That's the whole vibe. πŸ¦‹


✨ NAME ✨

ScXMLStateElt β€” implements the <state> SCXML element. πŸ’–


🌈 SYNOPSIS 🌈

#include <Inventor/scxml/ScXMLStateElt.h>

Inherits ScXMLAbstractStateElt. 🌸

πŸ’œ Public Member Functions πŸ’œ

  • virtual SoType getTypeId (void) const β€” hands you the type identification for an object derived from a class that inherits SoBase. It's what powers runtime type checking and "downward" casting. 🎯
  • ScXMLStateElt (void) β€” the constructor.
  • virtual ~ScXMLStateElt (void) β€” the destructor.
  • virtual void setSrcAttribute (const char *src) β€” sets the src thing.
  • const char * getSrcAttribute (void) const β€” gets the src thing back out.
  • virtual void setInitialAttribute (const char *initial) β€” sets the initial thing.
  • const char * getInitialAttribute (void) const β€” gets the initial thing back out.
  • virtual SbBool handleXMLAttributes (void) β€” handles the XML attributes.
  • virtual void copyContents (const ScXMLElt *rhs) β€” copies the contents.
  • virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) const β€” searches for stuff. πŸ”
  • virtual void setOnEntry (ScXMLOnEntryElt *onentry) β€” sets the on-entry element.
  • virtual ScXMLOnEntryElt * getOnEntry (void) const β€” gets the on-entry element.
  • virtual void setOnExit (ScXMLOnExitElt *onexit) β€” sets the on-exit element.
  • virtual ScXMLOnExitElt * getOnExit (void) const β€” gets the on-exit element.
  • virtual int getNumTransitions (void) const β€” how many transitions we got.
  • virtual ScXMLTransitionElt * getTransition (int idx) const β€” grab transition number idx.
  • virtual void addTransition (ScXMLTransitionElt *transition) β€” add a transition.
  • virtual void removeTransition (ScXMLTransitionElt *transition) β€” remove a transition.
  • virtual void clearAllTransitions (void) β€” nuke every transition. πŸ’€
  • virtual void setInitial (ScXMLInitialElt *initial) β€” set the <initial> element.
  • virtual ScXMLInitialElt * getInitial (void) const β€” get the <initial> element.
  • virtual int getNumStates (void) const β€” how many child states.
  • virtual ScXMLStateElt * getState (int idx) const β€” grab state number idx.
  • virtual void addState (ScXMLStateElt *state) β€” add a child state.
  • virtual void removeState (ScXMLStateElt *state) β€” remove a child state.
  • virtual void clearAllStates (void) β€” bye to every child state.
  • 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) β€” clear every parallel.
  • 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) β€” clear every final.
  • virtual int getNumHistories (void) const β€” how many histories.
  • virtual ScXMLHistoryElt * getHistory (int idx) const β€” grab history number idx.
  • virtual void addHistory (ScXMLHistoryElt *history) β€” add a history.
  • virtual void removeHistory (ScXMLHistoryElt *history) β€” remove a history.
  • virtual void clearAllHistories (void) β€” clear every history.
  • virtual int getNumAnchors (void) const β€” how many anchors.
  • virtual ScXMLAnchorElt * getAnchor (int idx) const β€” grab anchor number idx.
  • virtual void addAnchor (ScXMLAnchorElt *anchor) β€” add an anchor.
  • virtual void removeAnchor (ScXMLAnchorElt *anchor) β€” remove an anchor.
  • virtual void clearAllAnchors (void) β€” clear every anchor.
  • virtual void setDataModel (ScXMLDataModelElt *datamodel) β€” set the data model.
  • virtual ScXMLDataModelElt * getDataModel (void) const β€” get the data model.
  • SbBool isAtomicState (void) const β€” is she an atomic state? πŸ‘‘

πŸ’« Public Member Functions inherited from ScXMLAbstractStateElt πŸ’«

  • virtual void setIdAttribute (const char *id) β€” sets the id attribute.
  • const char * getIdAttribute (void) const β€” returns the id attribute.

πŸ’« Public Member Functions inherited from ScXMLElt πŸ’«

  • void setXMLAttribute (const char *attribute, const char *value) β€” sets an XML attribute.
  • const char * getXMLAttribute (const char *attribute) const β€” gets an XML attribute.
  • ScXMLElt * clone (void) const β€” clones the element.
  • virtual void setContainer (ScXMLElt *container) β€” sets the container.
  • ScXMLElt * getContainer (void) const β€” gets the container.
  • SbBool isContainedIn (const ScXMLElt *object) const β€” checks containment.

πŸ’« 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 as type or inherited from type. βœ…

🌟 Static Public Member Functions 🌟

  • static ScXMLEltReader * getElementReader (void) β€” gets the element reader.
  • static SoType getClassTypeId (void) β€” gets the class type id.
  • static void * createInstance (void) β€” creates an instance.
  • static void initClass (void) β€” initializes the class.
  • static void cleanClass (void) β€” cleans up the class.

🌟 Static Public Member Functions inherited from ScXMLAbstractStateElt 🌟

  • static SoType getClassTypeId (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 πŸ”

  • char * src
  • char * initial

πŸ” Protected Attributes inherited from ScXMLAbstractStateElt πŸ”

  • char * id

🧚 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 <state> SCXML element. no notes. πŸ’…

Since β€” Coin 3.0. ⭐


🍼 Constructor & Destructor Documentation 🍼

ScXMLStateElt::ScXMLStateElt (void )

Constructor. she's born. πŸŽ€

ScXMLStateElt::~ScXMLStateElt (void ) [virtual]

Destructor. she's gone. πŸ’€


πŸ”₯ Member Function Documentation πŸ”₯

SoType ScXMLStateElt::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 ScXMLAbstractStateElt.

void ScXMLStateElt::setSrcAttribute (const char * srcstr) [virtual]

Sets the XML src attribute for the SCXML <state> element. To get the attribute value interpreted and taken action upon, you will also need to [FIXME]

not me leaving a [FIXME] in the actual docs 😭 the original really does trail off like that, bestie. that's not me being lazy, that's canon.

const char * ScXMLStateElt::getSrcAttribute (void ) const [inline]

Returns the XML src attribute for this SCXML <state> element.

void ScXMLStateElt::setInitialAttribute (const char * initialstr) [virtual]

Sets the XML initial attribute for the SCXML <state> element. If this value is set, the state should not contain an <initial> element, and vice versa.

When set, this value must be the value of a descendant an identifier for a child state.

See also ScXMLInitialElt

const char * ScXMLStateElt::getInitialAttribute (void ) const [inline]

Returns the XML initial attribute for the SCXML <state> element.

SbBool ScXMLStateElt::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 ScXMLAbstractStateElt.

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

Reimplemented from ScXMLAbstractStateElt.

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

SbBool ScXMLStateElt::isAtomicState (void ) const

Returns TRUE if this is an "atomic state", which means that it has no sub-states but contains executable content. πŸ‘‘


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. (not a human, not a bestie, just Doxygen doing her little thing πŸŽ€)


okay and that's the whole page, bestie!! πŸ’– this was Coin 4.0.10, dated Thu Jun 25 2026 00:00:00, and yes the footer literally says ScXMLStateElt(3) again because manpages love repeating themselves. slay, go write some state machines, ily πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from