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

#include "steam/control/handling-patterns.hpp"

Description

Handling Pattern Foundation: invoke command directly and without any external intervention.

This pattern is intended as implementation base class, but can be used as-is for unit tests.

Definition at line 56 of file handling-patterns.hpp.

Private Member Functions

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

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
 
- 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
 

Member Function Documentation

◆ isValid()

bool isValid ( ) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Reimplemented in InvokeSyncNoThrow, InvokeSyncThrow, and InvokeAsync.

Definition at line 59 of file handling-patterns.hpp.

◆ performExec()

void performExec ( CommandImpl command) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Reimplemented in InvokeSyncNoThrow, InvokeSyncThrow, and InvokeAsync.

Definition at line 62 of file handling-patterns.hpp.

◆ performUndo()

void performUndo ( CommandImpl command) const
inlineoverrideprivatevirtual

Implements HandlingPattern.

Reimplemented in InvokeSyncNoThrow, InvokeSyncThrow, and InvokeAsync.

Definition at line 70 of file handling-patterns.hpp.

+ Inheritance diagram for BasicHandlingPattern:
+ Collaboration diagram for BasicHandlingPattern:

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