DABC (Data Acquisition Backbone Core)  2.9.9
Data Structures | Namespaces | Macros | Enumerations
Command.h File Reference
#include "dabc/Record.h"
#include "dabc/timing.h"
#include <list>

Go to the source code of this file.

Data Structures

class  dabc::Command
 Represents command with its arguments. More...
 
class  dabc::CommandContainer
 Container object for command which should not been seen to normal user. More...
 
struct  dabc::CommandContainer::CallerRec
 

Namespaces

 dabc
 Event manipulation API.
 

Macros

#define DABC_COMMAND(cmd_class, cmd_name)
 

Enumerations

enum  dabc::CommandRes {
  dabc::cmd_false = 0 , dabc::cmd_true = 1 , dabc::cmd_timedout = -1 , dabc::cmd_ignore = -2 ,
  dabc::cmd_postponed = -3 , dabc::cmd_noresult = -4 , dabc::cmd_canceled = -5
}
 

Macro Definition Documentation

◆ DABC_COMMAND

#define DABC_COMMAND (   cmd_class,
  cmd_name 
)
Value:
public: \
static const char* CmdName() { return cmd_name; } \
cmd_class() : dabc::Command(CmdName()) {} \
cmd_class(const dabc::Command& src) : dabc::Command(src) \
{ if (!src.IsName(CmdName())) throw dabc::Exception(dabc::ex_Command, "Wrong command name in assignment constructor", src.GetName()); } \
cmd_class& operator=(const cmd_class& cmd) { dabc::Command::operator=(cmd); return *this; } \
cmd_class& operator=(const dabc::Command& cmd) { \
if (!cmd.IsName(CmdName())) throw dabc::Exception(dabc::ex_Command, "Wrong command name in assignment operator", cmd.GetName()); \
dabc::Command::operator=(cmd); return *this; \
}
Represents command with its arguments.
Definition: Command.h:99
DABC exception.
Definition: Exception.h:57
const char * GetName() const
Return name of referenced object, if object not assigned, returns "---".
Definition: Reference.cxx:167
bool IsName(const char *name) const
Returns true if object name is the same as specified one.
Definition: Reference.cxx:177
Reference & operator=(const Reference &src)
Assignment operator - copy reference.
Definition: Reference.cxx:64
Event manipulation API.
Definition: api.h:23
@ ex_Command
Definition: Exception.h:35

Definition at line 282 of file Command.h.