Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef INTERACTION_DEBUG_H
00019 #define INTERACTION_DEBUG_H
00020 #include "mitkStateMachine.h"
00021 #include "MitkExtExports.h"
00022 #include "mitkSocketClient.h"
00023
00024 namespace mitk{
00025
00026 class MitkExt_EXPORT InteractionDebug
00027 {
00028 static InteractionDebug* m_Instance;
00029 static char* m_FileName;
00030
00031 char m_Buffer[255];
00032
00033 static const int OPEN_CONNECTION;
00034 static const int NEW_STATE_MACHINE;
00035 static const int EVENT;
00036 static const int TRANSITION;
00037 static const int ACTION;
00038 static const int DELETE_STATE_MACHINE;
00039
00040 unsigned int GetHashValue();
00041 InteractionDebug();
00042
00043 public:
00044 void OpenConection();
00045 bool NewStateMachine( const char* name, const StateMachine* stateMachine );
00046 bool Event( const StateMachine* stateMachine, unsigned int EventId );
00047 bool Transition( const StateMachine* stateMachine, const char* transitionName );
00048 bool Action( const StateMachine* stateMachine, const char* transitionName, unsigned int action );
00049 bool DeleteStateMachine( const StateMachine* stateMachine );
00050 void setMaxConnectionAdvance(int maxConectionAdvance);
00051 static InteractionDebug* GetInstance();
00052 static void SetXMLFileName( const char* fileName );
00053
00054 void sendCounter();
00055 };
00056
00057 }
00058
00059 #endif // INTERACTION_DEBUG_H