.TH "ScXMLDataElt" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME ScXMLDataElt \- the \fC\fP SCXML element\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBScXMLElt\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fBSoType\fP \fBgetTypeId\fP (\fBvoid\fP) \fBconst\fP" .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 "\fBvirtual\fP \fBvoid\fP \fBsetIDAttribute\fP (\fBconst\fP char *ID)" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBgetIDAttribute\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBsetSrcAttribute\fP (\fBconst\fP char *src)" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBgetSrcAttribute\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBsetExprAttribute\fP (\fBconst\fP char *expr)" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBgetExprAttribute\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP SbBool \fBhandleXMLAttributes\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBcopyContents\fP (\fBconst\fP \fBScXMLElt\fP *rhs)" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP \fBScXMLElt\fP * \fBsearch\fP (\fBconst\fP char *\fBattrname\fP, \fBconst\fP char *\fBattrvalue\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBsetValueObj\fP (\fBScXMLDataObj\fP *value)" .br .ti -1c .RI "\fBvirtual\fP \fBScXMLDataObj\fP * \fBgetValueObj\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c Public Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "\fBvoid\fP \fBsetXMLAttribute\fP (\fBconst\fP char *\fBattribute\fP, \fBconst\fP char *value)" .br .ti -1c .RI "\fBconst\fP char * \fBgetXMLAttribute\fP (\fBconst\fP char *\fBattribute\fP) \fBconst\fP" .br .ti -1c .RI "\fBScXMLElt\fP * \fBclone\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBsetContainer\fP (\fBScXMLElt\fP *container)" .br .ti -1c .RI "\fBScXMLElt\fP * \fBgetContainer\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisContainedIn\fP (\fBconst\fP \fBScXMLElt\fP *\fBobject\fP) \fBconst\fP" .br .in -1c Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "SbBool \fBisOfType\fP (\fBSoType\fP type) \fBconst\fP" .br .RI "Returns \fCTRUE\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 "\fBstatic\fP \fBScXMLEltReader\fP * \fBgetElementReader\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP * \fBcreateInstance\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBcleanClass\fP (\fBvoid\fP)" .br .in -1c Static Public Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBcleanClass\fP (\fBvoid\fP)" .br .in -1c Static Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .RI "This static method returns the \fBSoType\fP object associated with objects of this class\&. " .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .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 "\fBstatic\fP \fBvoid\fP \fBcleanClass\fP (\fBvoid\fP)" .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 "char * \fBID\fP" .br .ti -1c .RI "char * \fBsrc\fP" .br .ti -1c .RI "char * \fBexpr\fP" .br .ti -1c .RI "\fBScXMLDataObj\fP * \fBvalue\fP" .br .in -1c .SS "Additional Inherited Members" Static Protected Member Functions inherited from \fBScXMLElt\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBregisterClassType\fP (\fBconst\fP char *xmlns, \fBconst\fP char *\fBclassname\fP, \fBSoType\fP type)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBregisterInvokeClassType\fP (\fBconst\fP char *xmlns, \fBconst\fP char *targettype, \fBconst\fP char *source, \fBSoType\fP type)" .br .in -1c Static Protected Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBregisterClassType\fP (\fBconst\fP char *xmlns, \fBconst\fP char *\fBclassname\fP, \fBSoType\fP type)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBregisterInvokeClassType\fP (\fBconst\fP char *xmlns, \fBconst\fP char *targettype, \fBconst\fP char *source, \fBSoType\fP type)" .br .in -1c .SH "Detailed Description" .PP the \fC\fP SCXML element\&. The \fC\fP SCXML element is for storing variables\&. They need to be contained within a \fC\fP element\&. \fC\fP elements are only functional in state machines with a profile that has an implementation of the Data Module\&. The \fC'minimum'\fP profile does not, but the \fC'x-coin'\fP profile does\&. .PP The following attributes are accepted: .PD 0 .IP "\(bu" 1 \fCID\fP .IP "\(bu" 1 \fCsrc\fP - not supported .IP "\(bu" 1 \fCexpr\fP .PP The \fCID\fP attribute is required and specifies the variable name\&. The variable name must be unique for the whole SCXML state machine specification\&. .PP The \fCsrc\fP attribute is not supported\&. .PP The \fCexpr\fP attribute specifies the value of the variable\&. The attribute is evaluated based on which profile the state machine is using\&. .PP The value of the \fC\fP variable can be changed through the use of \fC\fP elements, and their values can be passed on to other systems through the use of the \fI\fP element in the External Communications Module\&. .PP \fBSince\fP .RS 4 Coin \fB4\&.0\fP .RE .PP \fBSee also\fP .RS 4 \fBScXMLDataModelElt\fP, \fBScXMLAssignElt\fP, \fBScXMLSendElt\fP .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSoType\fP ScXMLDataElt::getTypeId (\fBvoid\fP) const\fC [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 ScXMLDataElt::handleXMLAttributes (\fBvoid\fP)\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 "\fBvoid\fP ScXMLDataElt::copyContents (\fBconst\fP \fBScXMLElt\fP * rhs)\fC [virtual]\fP" .PP Reimplemented from \fBScXMLElt\fP\&. .SS "\fBconst\fP \fBScXMLElt\fP * ScXMLDataElt::search (\fBconst\fP char * attrname, \fBconst\fP char * attrvalue) const\fC [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\&.