diff options
Diffstat (limited to 'project2/lib/scopeObject.h')
-rw-r--r-- | project2/lib/scopeObject.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/project2/lib/scopeObject.h b/project2/lib/scopeObject.h new file mode 100644 index 0000000..6fc323d --- /dev/null +++ b/project2/lib/scopeObject.h @@ -0,0 +1,20 @@ +#ifndef SCOPE_OBJECT_H +#define SCOPE_OBJECT_H + +#include <boost/function.hpp> + +class ScopeObject { + public: + typedef boost::function<void()> Event; + ScopeObject(const Event &, const Event & = Event(), const Event & = Event(), const Event & = Event()); + ~ScopeObject(); + + private: + const Event onExitPre; + const Event onSuccess; + const Event onFailure; + const Event onExitPost; +}; + +#endif + |