ScXMLElseIfElt(3)

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

ScXMLElseIfElt πŸ’–

okay bestie, welcome to ScXMLElseIfElt, part of the Coin family, and yes it's section 3 of the manual, we love a library function moment ✨

ScXMLElseIfElt β€” it implements the <elseif> SCXML element. that's the whole vibe. periodt.


✨ NAME ✨

ScXMLElseIfElt β€” implements the <elseif> SCXML element πŸŽ€


🌸 SYNOPSIS 🌸

#include <Inventor/scxml/ScXMLElseIfElt.h>

Inherits ScXMLExecutableElt.

πŸ’… Public Member Functions

  • virtual SoType getTypeId (void) const β€” returns the type identification of an object derived from a class inheriting SoBase. it's literally the thing used for runtime type checking and downward"casting πŸ‘‘
  • virtual void setCondAttribute (const char *cond) β€” sets the cond attribute, as one does πŸ’…
  • virtual const char * getCondAttribute (void) const β€” hands you back the cond attribute, no cap
  • virtual SbBool handleXMLAttributes (void) β€” makes the object deal with its XML attributes and report whether everything was fine or if a read error should be produced πŸ¦‹
  • virtual void copyContents (const ScXMLElt *rhs) β€” copies contents from rhs, slay
  • virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) const β€” searches the SCXML structure for an element with the given attribute value for the given attribute πŸ”

Public Member Functions inherited from ScXMLExecutableElt

  • virtual void execute (ScXMLStateMachine *statemachine) const β€” runs the thing on the given state machine

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 β€” it's the cond, bestie πŸ“

πŸ¦‹ 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 <elseif> SCXML element. that's the job. she's employed. πŸ’Ό

the <elseif> element can have the attribute "cond" and no children. the <elseif> element is a separator element for the enclosing <if> element. it can only be used inside <if> elements. so don't be out here trying to use it anywhere else, fr fr πŸ™ˆ

Since

Coin 3.1 ✨


πŸ’œ Member Function Documentation πŸ’œ

SoType ScXMLElseIfElt::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. iconic behaviour honestly πŸ‘‘

See also

SoBase::getTypeId() const

Implements ScXMLExecutableElt.

SbBool ScXMLElseIfElt::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. no in-between, we don't do ambiguity here πŸ’…

this base class implementation does nothing and just returns TRUE. she's chill like that 😌

Reimplemented from ScXMLElt.

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

Reimplemented from ScXMLExecutableElt.

const ScXMLElt * ScXMLElseIfElt::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. heads up, bestie πŸ“’

Reimplemented from ScXMLElt.


🌈 Author 🌈

generated automatically by Doxygen for Coin from the source code. yes, a robot wrote this and honestly she ate πŸ€–πŸ’…


and that's the whole page, bestie!! no notes, 10/10, would read again 🌸

okay so the boring-but-important bits: this is Version 4.0.10, stamped Thu Jun 25 2026 00:00:00, and it's page ScXMLElseIfElt(3) of the Coin manual. go forth and conditionally else-if, my love πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from