ScXMLIfElt(3)

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

πŸ’– NAME πŸ’–

ScXMLIfElt β€” bestie, this is the class that implements the <if> SCXML element. That's it, that's the whole vibe.

Oh and btw, this is page ScXMLIfElt(3) from the Coin manual, so you know exactly where you are. πŸŽ€


✨ SYNOPSIS ✨

#include <Inventor/scxml/ScXMLIfElt.h>

It inherits from ScXMLExecutableElt β€” so everything that class can do, this one can do too. Inheritance slay. πŸ‘‘

πŸ¦‹ Public Member Functions πŸ¦‹

  • virtual SoType getTypeId (void) const β€” Returns the type identification of an object derived from a class inheriting SoBase. It's used for runtime type checking and "downward" casting.
  • virtual void setCondAttribute (const char *cond) β€” sets the cond attribute, no notes.
  • virtual const char * getCondAttribute (void) const β€” reads the cond attribute back out.
  • virtual SbBool handleXMLAttributes (void)
  • virtual void copyContents (const ScXMLElt *rhs)
  • virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) const
  • virtual int getNumElseIfs (void) const β€” how many elseif children we got.
  • virtual ScXMLElseIfElt * getElseIf (int idx) const β€” grab the elseif at index idx.
  • virtual void addElseIf (ScXMLElseIfElt *elseif) β€” add an elseif child.
  • virtual void removeElseIf (ScXMLElseIfElt *elseif) β€” remove an elseif child.
  • virtual void clearAllElseIfs (void) β€” yeet every elseif.
  • virtual void setElse (ScXMLElseElt *elseelt) β€” set the else element.
  • virtual ScXMLElseElt * getElse (void) const β€” get the else element.
  • virtual int getNumExecutables (const ScXMLExecutableElt *conditional) const β€” count executables for a given conditional.
  • virtual ScXMLExecutableElt * getExecutable (const ScXMLExecutableElt *conditional, int idx) const β€” grab the executable at idx for that conditional.
  • virtual void addExecutable (ScXMLExecutableElt *conditional, ScXMLExecutableElt *executable) β€” add an executable under a conditional.
  • virtual void removeExecutable (ScXMLExecutableElt *conditional, ScXMLExecutableElt *executable) β€” remove an executable under a conditional.
  • virtual void clearAllExecutables (ScXMLExecutableElt *conditional) β€” clear every executable for a conditional.
  • virtual void execute (ScXMLStateMachine *statemachine) const β€” run it, fr fr.

🌸 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 ScXMLExecutableElt 🌈

  • 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 * cond β€” the condition, sitting right there in protected-land.

πŸ¦‹ 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 🌟

It implements the <if> SCXML element. That's the whole thing, bestie β€” it's giving "does one job and does it flawlessly." πŸ’…


πŸ’… Member Function Documentation πŸ’…

SoType ScXMLIfElt::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 ScXMLExecutableElt.

SbBool ScXMLIfElt::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 ScXMLIfElt::copyContents (const ScXMLElt * rhs) [virtual]

Reimplemented from ScXMLExecutableElt.

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

Heads up bestie: this function needs to be reimplemented to traverse child elements. Not me pointing at the base class like πŸ‘€

Reimplemented from ScXMLElt.

void ScXMLIfElt::execute (ScXMLStateMachine * statemachine) const [virtual]

Reimplemented from ScXMLExecutableElt.


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. (Not a human, just a very diligent little robot. Iconic behaviour honestly.) πŸ€–βœ¨


okay so that's the whole page!! no cap, every single option, signature, attribute and inherited member made it in. πŸ’–

Version 4.0.10 β€” dated Thu Jun 25 2026 00:00:00. bye bestie, go compile something beautiful πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from