X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fyapi%2Flib%2FProcessWrapper.h;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fyapi%2Flib%2FProcessWrapper.h;h=bdecd340a93fd721404fe1c98640f72eb16fe988;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/src/dol/visitor/yapi/lib/ProcessWrapper.h b/dol/src/dol/visitor/yapi/lib/ProcessWrapper.h new file mode 100644 index 0000000..bdecd34 --- /dev/null +++ b/dol/src/dol/visitor/yapi/lib/ProcessWrapper.h @@ -0,0 +1,29 @@ +#ifndef _PROCESSWRAPPER_H_ +#define _PROCESSWRAPPER_H_ + +#include "dol.h" +#include "yapi.h" + +class ProcessWrapper : public Process +{ + public: + ProcessWrapper(const char* name, const Id& n); + virtual ~ProcessWrapper(); + virtual void initialize(); + virtual int fire(); + virtual bool isDetached() const { return _isDetached; } + virtual void detach(); + virtual int getIndex(unsigned indexNumber) const; + virtual char* getName() const; + + protected: + char* _name; + DOLProcess _process; + bool _isDetached; + int _iteratorIndex[4]; + virtual int getIndex(const char* string, char* tokens, + int indexNumber) const; +}; + +#endif +