1 #ifndef SCXML_EVENTTARGET_H 2 #define SCXML_EVENTTARGET_H 36 #include <Inventor/scxml/ScXMLObject.h> 37 #include <Inventor/tools/SbPimplPtr.h> 55 virtual void setEventTargetType(
const char * targettype);
56 const char * getEventTargetType(
void)
const {
return this->targettype; }
58 virtual void setEventTargetName(
const char * targetname);
59 const char * getEventTargetName(
void)
const {
return this->targetname; }
64 virtual void queueEvent(
const ScXMLEvent * event);
65 virtual void queueEvent(
const SbName & eventid);
67 virtual SbBool processEventQueue(
void);
70 virtual SbBool sendExternalEvent(
const ScXMLSendElt * sendelt);
71 virtual SbBool sendInternalEvent(
const ScXMLEventElt * sendelt);
73 virtual void queueInternalEvent(
const ScXMLEvent * event);
74 virtual void queueInternalEvent(
const SbName & eventid);
81 SbBool isprocessingqueue;
83 virtual void setCurrentEvent(
const ScXMLEvent * event);
85 virtual const ScXMLEvent * getNextInternalEvent(
void);
86 virtual const ScXMLEvent * getNextExternalEvent(
void);
88 virtual SbBool processOneEvent(
const ScXMLEvent * event);
90 static void registerEventTarget(
ScXMLEventTarget * target,
const char * sessionid = NULL);
91 static void unregisterEventTarget(
ScXMLEventTarget * target,
const char * sessionid = NULL);
93 static ScXMLEventTarget * getEventTarget(
const char * targettype,
const char * targetname,
const char * sessionid = NULL);
104 #endif // !SCXML_EVENTTARGET_H
the < send> SCXML element.
Definition: ScXMLSendElt.h:43
Base class for events sent to SCXML state machines.
Definition: ScXMLEvent.h:40
static void initClass(void)
Sets up initialization for data common to all instances of this class, like submitting necessary info...
Definition: ScXMLObject.cpp:102
static void cleanClass(void)
Does the opposite of initClass, deallocates any class specific resources and resets the class to an u...
Definition: ScXMLObject.cpp:115
Base class for all SCXML objects.
Definition: ScXMLObject.h:41
base class for event targets for inter-system event communication
Definition: ScXMLEventTarget.h:43
The SbName class stores strings by reference.
Definition: SbName.h:40
virtual const ScXMLEvent * getCurrentEvent(void) const
Definition: ScXMLEventTarget.h:62
implements the <event> SCXML element.
Definition: ScXMLEventElt.h:43