00001
00002 #ifndef __DAQpp_RunCommand_h__
00003 #define __DAQpp_RunCommand_h__
00004
00005 #include <DAQ++/ObserverModel.h>
00006 #include <DAQ++/exception.h>
00007
00008 namespace DAQpp
00009 {
00015 class RunCommand : public Observable
00016 {
00017 public:
00019 RunCommand()
00020 {}
00022 virtual ~RunCommand()
00023 {}
00025 enum CommandType {
00026 getready,
00027 initrun,
00028 run,
00029 stop,
00030 pauserun,
00031 resume,
00032 trigger,
00033 send_reset,
00034 gettingready
00035 };
00036
00038 void send_command(CommandType cmd)
00039 {
00040 Arg<CommandType> arg(cmd);
00041 notifyObservers(&arg);
00042 }
00043 };
00044 }
00045 #endif