.TH "ScXMLScxmlElt" 3 "Sat Oct 12 2013" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME ScXMLScxmlElt \- .PP implements the SCXML element\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBScXMLElt\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .RI "\fIReturns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for run-time type checking and 'downward' casting\&. \fP" .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 .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 .RI "\fIThis static method returns the \fBSoType\fP object associated with objects of this class\&. \fP" .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .RI "\fISets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system\&. \fP" .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .RI "\fIDoes the opposite of initClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin typesystem\&. \fP" .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" .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 datamodel module is enabled .PP .PP \fBSince:\fP .RS 4 Coin 3\&.0 .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSoType\fP ScXMLScxmlElt::getClassTypeId (void)\fC [static]\fP" .PP This static method returns the \fBSoType\fP object associated with objects of this class\&. \fBSee Also:\fP .RS 4 \fBSoBase::getClassTypeId\fP .RE .PP .PP Reimplemented from \fBScXMLElt\fP\&. .SS "\fBSoType\fP ScXMLScxmlElt::getTypeId (void) const\fC [virtual]\fP" .PP Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for run-time type checking and 'downward' casting\&. \fBSee Also:\fP .RS 4 \fBSoBase::getTypeId() const\fP .RE .PP .PP Implements \fBScXMLElt\fP\&. .SS "void ScXMLScxmlElt::initClass (void)\fC [static]\fP" .PP Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system\&. \fBSee Also:\fP .RS 4 \fBSoBase::initClass()\fP .RE .PP .PP Reimplemented from \fBScXMLElt\fP\&. .SS "SbBool ScXMLScxmlElt::handleXMLAttributes (void)\fC [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 "const \fBScXMLElt\fP * ScXMLScxmlElt::search (const char *attrname, const char *attrvalue) const\fC [virtual]\fP" This method searches the SCXML structure for an element with the given attributevalue 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\&.