ScXMLSendElt(3)
๐ ScXMLSendElt ๐
okay bestie, welcome to the manual page for ScXMLSendElt โ that's section 3 of the Coin manual, and she is the <send> SCXML element. group chat is open, let's go ๐
โจ NAME โจ
ScXMLSendElt โ the <send> SCXML element. short, sweet, iconic, no notes ๐
โจ SYNOPSIS โจ
#include <Inventor/scxml/ScXMLSendElt.h>
Inherits ScXMLExecutableElt.
๐ซถ Public Member Functions
virtual SoType getTypeId (void) constโ hands you the type identification of an object derived from a class inheritingSoBase. this is what does runtime type checking and "downward" casting, no cap.virtual void setEventAttribute (const char *event)โ sets theeventattribute โจvirtual const char * getEventAttribute (void) constโ reads theeventattribute back out ๐ธvirtual void setTargetAttribute (const char *event)โ sets thetargetattribute ๐ซvirtual const char * getTargetAttribute (void) constโ reads thetargetattribute ๐ฆvirtual void setTargetTypeAttribute (const char *event)โ sets thetargettypeattribute ๐virtual const char * getTargetTypeAttribute (void) constโ reads thetargettypeattribute โญvirtual void setSendIDAttribute (const char *event)โ sets thesendidattribute ๐virtual const char * getSendIDAttribute (void) constโ reads thesendidattribute ๐virtual void setDelayAttribute (const char *event)โ sets thedelayattribute โณvirtual const char * getDelayAttribute (void) constโ reads thedelayattribute ๐ฐ๏ธvirtual void setNameListAttribute (const char *event)โ sets thenamelistattribute ๐virtual const char * getNameListAttribute (void) constโ reads thenamelistattribute ๐virtual void setHintsAttribute (const char *event)โ sets thehintsattribute ๐ฎvirtual const char * getHintsAttribute (void) constโ reads thehintsattribute ๐งvirtual SbBool handleXMLAttributes (void)โ the XML attribute handler, details down in the member docs ๐virtual void copyContents (const ScXMLElt *rhs)โ copies contents, see the docs below ๐ซถvirtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constโ hunts the SCXML structure, docs below ๐ScXMLEvent * createEvent (ScXMLEventTarget *host) constโ makes an event for the given host โจvirtual void execute (ScXMLStateMachine *statemachine) constโ runs the thing, docs below ๐โ๏ธ
๐ธ Public Member Functions inherited from ScXMLElt
void setXMLAttribute (const char *attribute, const char *value)const char * getXMLAttribute (const char *attribute) constScXMLElt * clone (void) constvirtual void setContainer (ScXMLElt *container)ScXMLElt * getContainer (void) constSbBool isContainedIn (const ScXMLElt *object) const
๐ Public Member Functions inherited from ScXMLObject
SbBool isOfType (SoType type) constโ ReturnsTRUEif the type of this object is either of the same type or inherited from type. literally the vibe check of type systems ๐
๐ 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 theSoTypeobject 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 ofinitClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system.
๐ Protected Attributes
char * eventchar * targetchar * targettypechar * sendidchar * delaychar * namelistchar * hints
๐ซง 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 ๐
the <send> SCXML element. that's the whole title card bestie ๐
The <send> element is only useful in profiles that have an implementation of the External Communication Module. Both the "minimum" and the "x-coin" profile have implementations, but the "minimum" profile does not implement The Data Module, so only plain events without associated data can be sent. so like, minimum profile is minimum for a reason ๐ญ
The <send> element can take the following attributes:
eventtargettargettypesendidโ not supporteddelaynamelisthintsโ not supported
The <send> element sends external events. State machines have typically two event queues โ one internal, and one external. The internal event queue has full priority over the external event queue. State machines can send external events to itself, but it is more likely internal events are what you want. To send internal events, see the <event> element implemented in ScXMLEventElt. To send an external event to the containing state machine, do not specify the target attribute. iykyk ๐
The event attribute specifies the event name for the event that is being sent. Event names are dot-separated names like "error.InvalidExpr" or "x-coin-navigation.Rotate.BEGIN", and the event names are treated case-sensitive in the current implementation of Coin SCXML. The event attribute is required. ๐
The targettype attribute specifies the type of the target system. Other SCXML state machines have the type "scxml". Services related to Coin navigation systems have the targettype "x-coin-navigation". When sending external events to yourself, targettype can be omitted. ๐ฆ
The target attribute is the name of the target event system. If it is not specified, it means the event will be sent to the containing state machine. Coin navigation services are typically names "Rotate", but for other SCXML state machines, the <scxml> name attribute decides this. That name is not unique though if multiple such names have been created, so target can also be the state machine _sessionid identifier. (FIXME: check if this is implemented) ๐ง
The sendid attribute is not supported.
If delay is specified, it must take the form of "{number}s" or "{number}ms" giving you the option of specifying the delay in number of seconds or milliseconds before the event should be sent. For delayed events to be sent, the Coin delay queue processing must be performed. Most Coin users do that whether they know it or not. If delay is not specified, the event is passed to the target immediately. If a state machine is deleted, any events scheduled to be sent out in a delayed manner are going to be missing in action. The delay queue is a feature of the sending state machine, not the receiving one. ๐
not me scheduling a delayed event and then deleting the state machine. the event is GONE bestie, it's not coming back ๐
The namelist attribute specifies which data variables to include with the event for the event target. This attribute is only useful in profiles that implement the Data Module. The "minimum" profile does not, but the "x-coin" profile does. For the "x-coin" profile, you can specify <data> variables by addressing them with the _data.{ID} scheme, or you can specify temporary variables, either by using the coin:temp.{ID} scheme or have the prefix implicit by just specifying the {ID}. The latter is the most useful method, since event targets do not want to know where in a data model a variable comes from, nor the name it had where it was contained. With temporary variables, the values can get names that are intended for the event target instead of the name used at the source. ๐โจ
The hints attribute is not supported.
๐ See also
ScXMLEventTarget, ScXMLEventElt, ScXMLDataElt, ScXMLAssignElt
๐ Member Function Documentation ๐
SoType ScXMLSendElt::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 ScXMLSendElt::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 ScXMLSendElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLExecutableElt.
const ScXMLElt * ScXMLSendElt::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.
Reimplemented from ScXMLElt.
void ScXMLSendElt::execute (ScXMLStateMachine * statemachine) const [virtual]
Reimplemented from ScXMLExecutableElt.
๐ธ Author ๐ธ
Generated automatically by Doxygen for Coin from the source code. the robots wrote this one, not me ๐ซถ
and that's the whole page bestie!! ๐ this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and yeah โ the footer really does say ScXMLSendElt(3) again, we love a full circle moment โจ slay, go send some events (externally, obviously) ๐
๐
๐ฆ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms