Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
CommandUse1_test Class Reference

Description

Test:
command usage aspects I: defining commands in various ways, then re-accessing those definitions, create instances, invoke them and undo the effect. Clean up finally.
See also
Command
command-basic-test.cpp (simple usage example)

Definition at line 50 of file command-use1-test.cpp.

Private Member Functions

int random ()
 
virtual void run (Arg)
 
void allInOneStep ()
 
void standardUse ()
 
void statePredicates ()
 
void definePrototype ()
 
void usePrototype ()
 
void preventDuplicates ()
 
void stringRepresentation ()
 
void undef ()
 

Private Attributes

int randVal
 

Member Function Documentation

◆ random()

int random ( )
inlineprivate

Definition at line 54 of file command-use1-test.cpp.

References CommandUse1_test::randVal.

Referenced by CommandUse1_test::allInOneStep(), CommandUse1_test::definePrototype(), and CommandUse1_test::standardUse().

+ Here is the caller graph for this function:

◆ run()

◆ allInOneStep()

void allInOneStep ( )
inlineprivate

Definition at line 82 of file command-use1-test.cpp.

References steam::control::test::command1::capture(), steam::control::test::command1::check_, Command::get(), steam::control::test::command1::operate(), CommandDef::operation(), CommandUse1_test::random(), CommandUse1_test::randVal, Command::undo(), and steam::control::test::command1::undoIt().

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ standardUse()

void standardUse ( )
inlineprivate

Definition at line 101 of file command-use1-test.cpp.

References AcceptAnyBind< TAR, BA, RET >::bind(), Command::canExec(), Command::canUndo(), steam::control::test::command1::capture(), steam::control::test::command1::check_, Command::get(), steam::control::invoke(), steam::control::test::command1::operate(), CommandDef::operation(), CommandUse1_test::random(), CommandUse1_test::randVal, Command::undo(), steam::control::test::command1::undoIt(), and VERIFY_ERROR.

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ statePredicates()

void statePredicates ( )
inlineprivate

Definition at line 140 of file command-use1-test.cpp.

References AcceptAnyBind< TAR, BA, RET >::bind(), Command::canExec(), Command::canUndo(), steam::control::test::command1::capture(), Command::defined(), Command::get(), steam::control::test::command1::operate(), Command::remove(), Command::unbind(), Command::undo(), steam::control::test::command1::undoIt(), and VERIFY_ERROR.

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ definePrototype()

void definePrototype ( )
inlineprivate

Definition at line 192 of file command-use1-test.cpp.

References steam::control::test::command1::capture(), Command::get(), steam::control::test::command1::operate(), CommandDef::operation(), CommandUse1_test::random(), and steam::control::test::command1::undoIt().

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ usePrototype()

void usePrototype ( )
inlineprivate

Definition at line 206 of file command-use1-test.cpp.

References steam::control::test::command1::check_, Command::get(), Command::newInstance(), and CommandUse1_test::randVal.

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ preventDuplicates()

void preventDuplicates ( )
inlineprivate

Definition at line 289 of file command-use1-test.cpp.

References BUILD_NEW_COMMAND_DEF, and VERIFY_ERROR.

Referenced by CommandUse1_test::run().

+ Here is the caller graph for this function:

◆ stringRepresentation()

void stringRepresentation ( )
inlineprivate

Definition at line 309 of file command-use1-test.cpp.

References AcceptAnyBind< TAR, BA, RET >::bind(), steam::control::test::command1::capture(), Command::get(), steam::control::test::command1::operate(), CommandDef::operation(), Command::undo(), and steam::control::test::command1::undoIt().

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ undef()

void undef ( )
inlineprivate

Definition at line 334 of file command-use1-test.cpp.

References Command::get(), steam::control::invoke(), Command::remove(), and VERIFY_ERROR.

Referenced by CommandUse1_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ randVal

+ Inheritance diagram for CommandUse1_test:
+ Collaboration diagram for CommandUse1_test:

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