cpp_launchpad/compile/act/controller.h

16 lines
206 B
C++

#ifndef ACT_CONTROLLER
#define ACT_CONTROLLER
class controller_t {
public:
enum event_t {
start,
stop
};
enum status_t {
ok,
error
};
virtual status_t on_event(event_t event_p) = 0;
};
#endif