24ef2b23b3c715e31b4bca4c80b594b651d1d1fc
[jump.git] / dol / src / dol / visitor / protothread / lib / ProcessWrapper.h
1 #ifndef _PROCESSWRAPPER_H_
2 #define _PROCESSWRAPPER_H_
3
4 #include <dol.h>
5
6 class ProcessWrapper
7 {
8     public:
9         ProcessWrapper(char* name, int iteratorIndex[4]);
10         virtual ~ProcessWrapper();
11
12         virtual void init();
13         virtual int fire();
14         virtual bool isDetached() { return _isDetached; }
15         virtual void detach();
16         virtual int getIndex(unsigned indexNumber) const;
17
18     protected:
19         char* _name;;
20         DOLProcess _process;
21         bool _isDetached;
22         int _iteratorIndex[4];
23 };
24
25 #endif