ScXMLDocument(3)

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

πŸ’– NAME πŸ’–

ScXMLDocument β€” bestie, this is the Coin manual page, section 3, and we're about to get so cozy with it. πŸŽ€


✨ SYNOPSIS ✨

Okay so first things first, you gotta pull it in:

#include <Inventor/scxml/Document.h>

And guess what β€” it Inherits ScXMLObject. Family tree matters, iykyk. πŸ¦‹


🌸 Public Member Functions 🌸

  • virtual SoType getTypeId (void) const β€” hands you back the type identification of an object derived from a class inheriting SoBase. It's for runtime type checking and "downward" casting. Basically it's the "who even am I" function. πŸ’…
  • void setFilename (const char *filename) β€” sets the filename. That's it, that's the tweet. ✨
  • const char * getFilename (void) const β€” reads the filename back out. ✨
  • virtual void setRoot (ScXMLScxmlElt *root) β€” sets the root. πŸ‘‘
  • ScXMLScxmlElt * getRoot (void) const β€” gets the root. πŸ‘‘
  • ScXMLAbstractStateElt * getStateById (SbName id) const β€” grabs a state by its id. πŸ”
  • ScXMLDataElt * getDataById (SbName id) const β€” grabs data by its id. πŸ”

🫢 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. No cap, it's the vibe check for class lineage. 🌈

⭐ Static Public Member Functions ⭐

  • static SoType getClassTypeId (void) β€” the class-level type id. πŸŽ€
  • static void * createInstance (void) β€” makes you a fresh instance. ✨
  • static void initClass (void) β€” sets the class up. ✨
  • static void cleanClass (void) β€” tears the class back down. ✨
  • static ScXMLDocument * readFile (const char *filename) β€” reads a document from a file. πŸ“‚
  • static ScXMLDocument * readBuffer (const SbByteBuffer &buffer) β€” reads a document from a buffer. 🧺
  • static ScXMLDocument * readXMLData (cc_xml_doc *xmldoc) β€” reads a document from raw XML data. πŸ“œ

πŸ’œ 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. 🧹

πŸ¦‹ Additional Inherited Members πŸ¦‹

Static Protected Member Functions inherited from ScXMLObject

  • static void registerClassType (const char *xmlns, const char *classname, SoType type) β€” registers a class type. πŸŽ€
  • static void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type) β€” registers an invoke class type. πŸŽ€

πŸ‘‘ Detailed Description πŸ‘‘

The <ScXMLDocument class is a container class for a complete SCXML document. It's literally the whole-document holder, the main character of the file. πŸ’–


πŸ”₯ Member Function Documentation πŸ”₯

SoType ScXMLDocument::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: ScXMLObject.


🌸 Author 🌸

Generated automatically by Doxygen for Coin from the source code. (Not me hand-writing lore, bestie β€” the robots did it. πŸ€–βœ¨)


And that's a wrap, gorgeous! πŸ’… This was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, straight from the ScXMLDocument(3) era of the Coin manual. Go forth and container-ize your SCXML documents, periodt. πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from