Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
CustomHandler Class Reference

Description

Definition at line 42 of file handling-pattern-basics-test.cpp.

Public Member Functions

bool invokedExec ()
 
bool invokedUndo ()
 
- 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.
 
ExecResult undo (CommandImpl &command, string) const
 likewise invoke the configured UNDO operation
 
 operator bool () const
 

Private Member Functions

void performExec (CommandImpl &command) const override
 
void performUndo (CommandImpl &command) const override
 
bool isValid () const override
 

Private Attributes

lib::test::EventLog log_ {"custom command handler"}
 

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 constget (ID id)
 retrieve the pre-configured pattern
 

Member Function Documentation

◆ performExec()

void performExec ( CommandImpl command) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Definition at line 52 of file handling-pattern-basics-test.cpp.

◆ performUndo()

void performUndo ( CommandImpl command) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Definition at line 60 of file handling-pattern-basics-test.cpp.

◆ isValid()

bool isValid ( ) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Definition at line 67 of file handling-pattern-basics-test.cpp.

◆ invokedExec()

bool invokedExec ( )
inline

Definition at line 75 of file handling-pattern-basics-test.cpp.

◆ invokedUndo()

bool invokedUndo ( )
inline

Definition at line 81 of file handling-pattern-basics-test.cpp.

Member Data Documentation

◆ log_

lib::test::EventLog log_ {"custom command handler"}
mutableprivate

Definition at line 46 of file handling-pattern-basics-test.cpp.

+ Inheritance diagram for CustomHandler:
+ Collaboration diagram for CustomHandler:

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