.TH "ScXMLScxmlElt" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME ScXMLScxmlElt \- implements the SCXML element\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBScXMLElt\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const" .br .RI "Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for runtime type checking and 'downward' casting\&. " .ti -1c .RI "void \fBsetIsReferenced\fP (SbBool referenced)" .br .ti -1c .RI "SbBool \fBisReferenced\fP (void) const" .br .ti -1c .RI "virtual void \fBsetInitialAttribute\fP (const char *initial)" .br .ti -1c .RI "const char * \fBgetInitialAttribute\fP (void) const" .br .ti -1c .RI "virtual void \fBsetNameAttribute\fP (const char *name)" .br .ti -1c .RI "const char * \fBgetNameAttribute\fP (void) const" .br .ti -1c .RI "virtual void \fBsetXMLNSAttribute\fP (const char *xmlns)" .br .ti -1c .RI "const char * \fBgetXMLNSAttribute\fP (void) const" .br .ti -1c .RI "virtual void \fBsetVersionAttribute\fP (const char *version)" .br .ti -1c .RI "const char * \fBgetVersionAttribute\fP (void) const" .br .ti -1c .RI "virtual void \fBsetProfileAttribute\fP (const char *profile)" .br .ti -1c .RI "const char * \fBgetProfileAttribute\fP (void) const" .br .ti -1c .RI "virtual void \fBsetExModeAttribute\fP (const char *exmode)" .br .ti -1c .RI "const char * \fBgetExModeAttribute\fP (void) const" .br .ti -1c .RI "virtual SbBool \fBhandleXMLAttributes\fP (void)" .br .ti -1c .RI "virtual void \fBcopyContents\fP (const \fBScXMLElt\fP *rhs)" .br .ti -1c .RI "virtual const \fBScXMLElt\fP * \fBsearch\fP (const char *attrname, const char *attrvalue) const" .br .ti -1c .RI "virtual void \fBsetInitial\fP (\fBScXMLInitialElt\fP *initial)" .br .ti -1c .RI "virtual \fBScXMLInitialElt\fP * \fBgetInitial\fP (void) const" .br .ti -1c .RI "virtual int \fBgetNumStates\fP (void) const" .br .ti -1c .RI "virtual \fBScXMLStateElt\fP * \fBgetState\fP (int idx) const" .br .ti -1c .RI "virtual void \fBaddState\fP (\fBScXMLStateElt\fP *state)" .br .ti -1c .RI "virtual void \fBremoveState\fP (\fBScXMLStateElt\fP *state)" .br .ti -1c .RI "virtual void \fBclearAllStates\fP (void)" .br .ti -1c .RI "virtual int \fBgetNumParallels\fP (void) const" .br .ti -1c .RI "virtual \fBScXMLParallelElt\fP * \fBgetParallel\fP (int idx) const" .br .ti -1c .RI "virtual void \fBaddParallel\fP (\fBScXMLParallelElt\fP *state)" .br .ti -1c .RI "virtual void \fBremoveParallel\fP (\fBScXMLParallelElt\fP *state)" .br .ti -1c .RI "virtual void \fBclearAllParallels\fP (void)" .br .ti -1c .RI "virtual int \fBgetNumFinals\fP (void) const" .br .ti -1c .RI "virtual \fBScXMLFinalElt\fP * \fBgetFinal\fP (int idx) const" .br .ti -1c .RI "virtual void \fBaddFinal\fP (\fBScXMLFinalElt\fP *state)" .br .ti -1c .RI "virtual void \fBremoveFinal\fP (\fBScXMLFinalElt\fP *state)" .br .ti -1c .RI "virtual void \fBclearAllFinals\fP (void)" .br .ti -1c .RI "virtual void \fBsetDataModel\fP (\fBScXMLDataModelElt\fP *datamodel)" .br .ti -1c .RI "virtual \fBScXMLDataModelElt\fP * \fBgetDataModel\fP (void) const" .br .ti -1c .RI "virtual int \fBgetNumScripts\fP (void) const" .br .ti -1c .RI "virtual \fBScXMLScriptElt\fP * \fBgetScript\fP (int idx) const" .br .ti -1c .RI "virtual void \fBaddScript\fP (\fBScXMLScriptElt\fP *state)" .br .ti -1c .RI "virtual void \fBremoveScript\fP (\fBScXMLScriptElt\fP *state)" .br .ti -1c .RI "virtual void \fBclearAllScripts\fP (void)" .br .ti -1c .RI "virtual void \fBexecute\fP (\fBScXMLStateMachine\fP *statemachine) const" .br .in -1c Public Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "void \fBsetXMLAttribute\fP (const char *attribute, const char *value)" .br .ti -1c .RI "const char * \fBgetXMLAttribute\fP (const char *attribute) const" .br .ti -1c .RI "\fBScXMLElt\fP * \fBclone\fP (void) const" .br .ti -1c .RI "virtual void \fBsetContainer\fP (\fBScXMLElt\fP *container)" .br .ti -1c .RI "\fBScXMLElt\fP * \fBgetContainer\fP (void) const" .br .ti -1c .RI "SbBool \fBisContainedIn\fP (const \fBScXMLElt\fP *object) const" .br .in -1c Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "SbBool \fBisOfType\fP (\fBSoType\fP type) const" .br .RI "Returns \fRTRUE\fP if the type of this object is either of the same type or inherited from \fItype\fP\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBScXMLEltReader\fP * \fBgetElementReader\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .RI "This static method returns the \fBSoType\fP object associated with objects of this class\&. " .ti -1c .RI "static void \fBinitClass\fP (void)" .br .RI "Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system\&. " .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .RI "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\&. " .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "SbBool \fBreferenced\fP" .br .ti -1c .RI "char * \fBinitial\fP" .br .ti -1c .RI "char * \fBname\fP" .br .ti -1c .RI "char * \fBxmlns\fP" .br .ti -1c .RI "char * \fBversion\fP" .br .ti -1c .RI "char * \fBprofile\fP" .br .ti -1c .RI "char * \fBexmode\fP" .br .in -1c .SS "Additional Inherited Members" Static Protected Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "static void \fBregisterClassType\fP (const char *xmlns, const char *classname, \fBSoType\fP type)" .br .ti -1c .RI "static void \fBregisterInvokeClassType\fP (const char *xmlns, const char *targettype, const char *source, \fBSoType\fP type)" .br .in -1c Static Protected Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "static void \fBregisterClassType\fP (const char *xmlns, const char *classname, \fBSoType\fP type)" .br .ti -1c .RI "static void \fBregisterInvokeClassType\fP (const char *xmlns, const char *targettype, const char *source, \fBSoType\fP type)" .br .in -1c .SH "Detailed Description" .PP implements the SCXML element\&. An object of this type represents the root SCXML element in a document\&. It has the following attributes: .PP .IP "\(bu" 2 initial .IP "\(bu" 2 name .IP "\(bu" 2 xmlns .IP "\(bu" 2 version [REQUIRED] must contain '1\&.0' .IP "\(bu" 2 profile .IP "\(bu" 2 exmode - 'lax' or 'strict' .PP .PP The element can have child elements of the following types: .IP "\(bu" 2 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 element is the root element and not an external reference from another document\&. .IP "\(bu" 2 state - zero or more elements .IP "\(bu" 2 parallel - zero or more elements .IP "\(bu" 2 final - zero or more elements .IP "\(bu" 2 datamodel - zero or one if the data model module is enabled .PP .PP \fBSince\fP .RS 4 Coin 3\&.0 .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSoType\fP ScXMLScxmlElt::getTypeId (void ) const\fR [virtual]\fP" .PP Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for runtime type checking and 'downward' casting\&. .PP \fBSee also\fP .RS 4 \fBSoBase::getTypeId() const\fP .RE .PP .PP Implements \fBScXMLElt\fP\&. .SS "SbBool ScXMLScxmlElt::handleXMLAttributes (void )\fR [virtual]\fP" 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\&. .PP \fBReturns\fP .RS 4 TRUE if the attributes are OK, and FALSE on error\&. .RE .PP This base class implementation does nothing and just returns TRUE\&. .PP Reimplemented from \fBScXMLElt\fP\&. .SS "void ScXMLScxmlElt::copyContents (const \fBScXMLElt\fP * rhs)\fR [virtual]\fP" .PP Reimplemented from \fBScXMLElt\fP\&. .SS "const \fBScXMLElt\fP * ScXMLScxmlElt::search (const char * attrname, const char * attrvalue) const\fR [virtual]\fP" This method searches the SCXML structure for an element with the given attribute value for the given attribute\&. .PP Returns NULL if nothing was found\&. .PP This function needs to be reimplemented to traverse child elements\&. .PP Reimplemented from \fBScXMLElt\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.