dol: initial dol commit
[jump.git] / dol / src / dol / visitor / protothread / lib / ProcessWrapper.h
diff --git a/dol/src/dol/visitor/protothread/lib/ProcessWrapper.h b/dol/src/dol/visitor/protothread/lib/ProcessWrapper.h
new file mode 100644 (file)
index 0000000..24ef2b2
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef _PROCESSWRAPPER_H_
+#define _PROCESSWRAPPER_H_
+
+#include <dol.h>
+
+class ProcessWrapper
+{
+    public:
+        ProcessWrapper(char* name, int iteratorIndex[4]);
+        virtual ~ProcessWrapper();
+
+        virtual void init();
+        virtual int fire();
+        virtual bool isDetached() { return _isDetached; }
+        virtual void detach();
+        virtual int getIndex(unsigned indexNumber) const;
+
+    protected:
+        char* _name;;
+        DOLProcess _process;
+        bool _isDetached;
+        int _iteratorIndex[4];
+};
+
+#endif