Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PlaceholderCommand< ARGS > Class Template Reference

#include "/Werk/devel/lumi/tests/gui/test/placeholder-command.hpp"

Description

template<typename... ARGS>
class gui::test::PlaceholderCommand< ARGS >

Set of stub command operations.

This is a typed definition frame with some operations, suitably to be bound into a Proc-Layer command. The actual command "operation" just logs invocation into a statically obtained Event-Log instance.

Note
by design, in Lumiera the actual command functions are stateless. For this reason, the command framework provides no way to associate an instance of some kind of "command object" with the (conceptual) command binding or prototype, thus we're unable to log anything beyond the concrete argument types and values on invocation.

Definition at line 77 of file placeholder-command.hpp.

Static Public Member Functions

static proc::control::Command fabricateNewInstance (lib::test::EventLog const &invocationLog)
 

Static Private Member Functions

static string capture (ARGS...args)
 
static string fullTypeID ()
 
static void operate (ARGS...args)
 a dummy command "operation More...
 
static void undo (ARGS..., string memento)
 
static string uniqueTypeInstance ()
 

Static Private Attributes

static lib::test::EventLog log_
 

Member Function Documentation

static string uniqueTypeInstance ( )
inlinestaticprivate

unique ID-string specific for the instance ARGS

Definition at line 83 of file placeholder-command.hpp.

Referenced by PlaceholderCommand< ARGS >::fabricateNewInstance().

+ Here is the caller graph for this function:

static string fullTypeID ( )
inlinestaticprivate

Definition at line 89 of file placeholder-command.hpp.

Referenced by PlaceholderCommand< ARGS >::operate(), and PlaceholderCommand< ARGS >::undo().

+ Here is the caller graph for this function:

static void operate ( ARGS...  args)
inlinestaticprivate

a dummy command "operation

Definition at line 97 of file placeholder-command.hpp.

References EventLog::call(), and PlaceholderCommand< ARGS >::fullTypeID().

Referenced by PlaceholderCommand< ARGS >::fabricateNewInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static string capture ( ARGS...  args)
inlinestaticprivate

Definition at line 103 of file placeholder-command.hpp.

References util::join().

Referenced by PlaceholderCommand< ARGS >::fabricateNewInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void undo ( ARGS...  ,
string  memento 
)
inlinestaticprivate

Definition at line 110 of file placeholder-command.hpp.

References EventLog::call(), and PlaceholderCommand< ARGS >::fullTypeID().

Referenced by PlaceholderCommand< ARGS >::fabricateNewInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static proc::control::Command fabricateNewInstance ( lib::test::EventLog const &  invocationLog)
inlinestatic

Definition at line 118 of file placeholder-command.hpp.

References PlaceholderCommand< ARGS >::capture(), PlaceholderCommand< ARGS >::operate(), PlaceholderCommand< ARGS >::undo(), and PlaceholderCommand< ARGS >::uniqueTypeInstance().

Referenced by Nexus::prepareMockCmd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

lib::test::EventLog log_
staticprivate

Definition at line 79 of file placeholder-command.hpp.

+ Collaboration diagram for PlaceholderCommand< ARGS >:

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