Lumiera  0.pre.03
»edit your freedom«
SimulatedCommandHandler Class Reference

Description

Compact diagnostic dummy command handler.

Used as disposable one-way off object. Is handles the "`act`" to bind arguments and trigger execution, and it implements the HandlingPattern interface to receive and invoke the prepared command closure.

Definition at line 443 of file test-nexus.cpp.

Public Member Functions

 SimulatedCommandHandler (GenNode const &cmdMsg)
 
- Public Member Functions inherited from HandlingPattern
virtual ~HandlingPattern ()
 this is an interface
 
ExecResult exec (CommandImpl &command, string) const
 main functionality: invoke a command, detect errors. More...
 
 operator bool () const
 
ExecResult undo (CommandImpl &command, string) const
 likewise invoke the configured UNDO operation
 

Private Member Functions

EventLog::ArgSeq enumerate (Rec const &argData)
 
bool isValid () const override
 
void performExec (CommandImpl &command) const override
 
void performUndo (CommandImpl &command) const override
 

Static Private Member Functions

static Command retrieveCommand (GenNode const &cmdMsg)
 

Private Attributes

Command command_
 
EventLog log_
 

Additional Inherited Members

- Public Types inherited from HandlingPattern
enum  ID {
  SYNC,
  SYNC_THROW,
  ASYNC,
  DUMMY,
  NUM_IDS
}
 
- Static Public Member Functions inherited from HandlingPattern
static ID defaultID ()
 
static HandlingPattern const & get (ID id)
 retrieve the pre-configured pattern
 
+ Inheritance diagram for SimulatedCommandHandler:
+ Collaboration diagram for SimulatedCommandHandler:

The documentation for this class was generated from the following file: