dol: initial dol commit
[jump.git] / dol / src / dol / visitor / yapi / lib / ProcessWrapper.h
diff --git a/dol/src/dol/visitor/yapi/lib/ProcessWrapper.h b/dol/src/dol/visitor/yapi/lib/ProcessWrapper.h
new file mode 100644 (file)
index 0000000..bdecd34
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef _PROCESSWRAPPER_H_\r
+#define _PROCESSWRAPPER_H_\r
+\r
+#include "dol.h"\r
+#include "yapi.h"\r
+\r
+class ProcessWrapper : public Process\r
+{\r
+    public:\r
+        ProcessWrapper(const char* name, const Id& n);\r
+        virtual ~ProcessWrapper();\r
+        virtual void initialize();\r
+        virtual int fire();\r
+        virtual bool isDetached() const { return _isDetached; }\r
+        virtual void detach();\r
+        virtual int getIndex(unsigned indexNumber) const;\r
+        virtual char* getName() const;\r
+\r
+    protected:\r
+        char* _name;\r
+        DOLProcess _process;\r
+        bool _isDetached;\r
+        int _iteratorIndex[4];\r
+        virtual int getIndex(const char* string, char* tokens,\r
+                int indexNumber) const;\r
+};\r
+\r
+#endif\r
+\r