8#include "daq/rfarm/manager/RFCommand.h"
12const RFCommand RFCommand::CONFIGURE(601,
"RF_CONFIGURE");
13const RFCommand RFCommand::UNCONFIGURE(602,
"RF_UNCONFIGURE");
14const RFCommand RFCommand::START(603,
"RF_START");
15const RFCommand RFCommand::STOP(604,
"RF_STOP");
16const RFCommand RFCommand::RESTART(605,
"RF_RESTART");
17const RFCommand RFCommand::PAUSE(606,
"RF_PAUSE");
18const RFCommand RFCommand::RESUME(607,
"RF_RESUME");
19const RFCommand RFCommand::STATUS(608,
"RF_STATUS");
29 if (label == CONFIGURE.getLabel()) *
this = CONFIGURE;
30 else if (label == UNCONFIGURE.getLabel()) *
this = UNCONFIGURE;
31 else if (label == START.getLabel()) *
this = START;
32 else if (label == STOP.getLabel()) *
this = STOP;
33 else if (label == RESTART.getLabel()) *
this = RESTART;
34 else if (label == PAUSE.getLabel()) *
this = PAUSE;
35 else if (label == RESUME.getLabel()) *
this = RESUME;
36 else if (label == STATUS.getLabel()) *
this = STATUS;
37 else if (label == NSMCommand::OK.getLabel()) *
this = NSMCommand::OK;
38 else if (label == NSMCommand::ERROR.getLabel()) *
this = NSMCommand::ERROR;
39 else *
this = Enum::UNKNOWN;
45 if (label != NULL) *
this = std::string(label);
46 else *
this = Enum::UNKNOWN;
const NSMCommand & operator=(const NSMCommand &command)
Operator =.
const RFCommand & operator=(const RFCommand &command)
Operator =.
Abstract base class for different kinds of events.