fork download
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4.  
  5. #define CLASS(x) class x {
  6. #define METHODS public:
  7. #define END_CLASS };
  8.  
  9. typedef void (*ArenaMgr_MsgEventMapFunc)();
  10.  
  11. typedef int QObject;
  12. typedef QObject QEvent;
  13. typedef QObject QHsm;
  14. typedef QObject Geometry;
  15.  
  16. typedef std::queue<QEvent> EventQueue;
  17.  
  18. CLASS(arenamanager)
  19. int machineSum;
  20. int regularSig;
  21. int eventTypeSum;
  22. ArenaMgr_MsgEventMapFunc s_mapFunc;
  23. EventQueue queue;
  24. bool stateMachinesAreIniti;
  25. METHODS
  26. void arenamgrInit(void);
  27. void smRegistry(int id, QHsm * stateMachine);
  28. void dispatchAsyn(int id, QEvent *event);
  29. bool dispatch(int id, QEvent *event);
  30. void forwardDispatchAsyn(QEvent *event);
  31. void forwardDispatch(QEvent *event);
  32. void setMachineSum(int sum);
  33. void setRegularSig(int sig);
  34. void setEventTypeSum(int sum);
  35. void setMsgEventMap(ArenaMgr_MsgEventMapFunc mapFunc);
  36. void statEng_createArena(int sm_id, int arena_id, char const* arena_name, Geometry const* geom);
  37. void statEng_enableArena(int sm_id, bool enabled);
  38. void postForwardDispatchAsyn(QEvent *event);
  39. void setIsAbrFullMode(bool isAbrFullMode);
  40. void statEng_initStateMachines(void);
  41. END_CLASS
  42.  
  43. int main() {
  44. // your code goes here
  45. return 0;
  46. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty