1 #ifndef COIN_SCXMLSTATEMACHINE_H
2 #define COIN_SCXMLSTATEMACHINE_H
36 #include <Inventor/scxml/ScXMLEventTarget.h>
38 #include <Inventor/SbName.h>
39 #include <Inventor/lists/SbList.h>
47 typedef void ScXMLStateMachineDeleteCB(
void * userdata,
51 const char * stateidentifier,
54 typedef void ScXMLParallelStateChangeCB(
void * userdata,
57 const char ** stateidentifiers,
66 static void initClass(
void);
67 static void cleanClass(
void);
72 virtual void setName(
const SbName & name);
73 const SbName & getName(
void)
const;
78 virtual void setSessionId(
const SbName & sessionid);
79 const SbName & getSessionId(
void)
const;
81 virtual void initialize(
void);
83 virtual SbBool isActive(
void)
const;
84 virtual SbBool isFinished(
void)
const;
86 virtual int getNumActiveStates(
void)
const;
87 virtual const ScXMLElt * getActiveState(
int idx)
const;
89 virtual void addDeleteCallback(ScXMLStateMachineDeleteCB * callback,
91 virtual void removeDeleteCallback(ScXMLStateMachineDeleteCB * callback,
99 virtual void setVariable(
const char * name,
const char * value);
100 virtual const char * getVariable(
const char * name)
const;
104 virtual void setLogLevel(
int loglevel);
105 int getLogLevel(
void)
const;
110 SbBool isModuleEnabled(
const char * modulename)
const;
111 int getNumEnabledModules(
void)
const;
112 const char * getEnabledModuleName(
int idx)
const;
123 SbPimplPtr<PImpl> pimpl;
127 #endif // !COIN_SCXMLSTATEMACHINE_H