blob: d019e7d39ff1560022389ab5cea31ad25f4562f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef SCOPE_OBJECT_H
#define SCOPE_OBJECT_H
#include <boost/function.hpp>
class ScopeObject {
public:
typedef boost::function0<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
|