Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
command-invocation.hpp File Reference

Some additional helpers and convenience shortcuts to ease command invocation. More...

Go to the source code of this file.

Description

Some additional helpers and convenience shortcuts to ease command invocation.

Especially, this header defines a set of free invoke(...) functions, allowing to bind to specific arguments and then invoke through the default HandlingPatern in a single call.

While in some cases, a command will be set up completely finished and closed over all it's arguments, usually the CommandDef will just specify the command operation and undo function, thus leaving the task of binding concrete arguments to the client code. Thus, depending on the circumstances, there might be usage situations where the exact number and type of arguments can be detected and checked at compile time, while otherwise this check needs to be deferred to happen at runtime, when the binding is actually invoked.

See also
Command
CommandDef
command-binding.hpp
command-use1-test.cpp

Definition in file command-invocation.hpp.

Namespaces

namespace  steam
 Steam-Layer implementation namespace root.
 
namespace  steam::control
 Steam-Layer dispatcher, controller and administrative facilities.
 
namespace  steam::control::com
 

Classes

struct  _DefineBindFunc< SIG >
 < Steam-Layer command implementation details More...
 
struct  CommandInvoker< SIG >
 
struct  RuntimeCheckedCommandInvoker
 

Functions

com::RuntimeCheckedCommandInvoker invoke (Symbol cmdID)
 
com::RuntimeCheckedCommandInvoker invoke (CStr cmdID)
 

Class Documentation

◆ steam::control::com::_DefineBindFunc

struct steam::control::com::_DefineBindFunc
Class Members
typedef ExecResult SIG_Bind
+ Collaboration diagram for _DefineBindFunc< SIG >: