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

#include "steam/control/command-invocation.hpp"

Description

transient invoker object, usable when the exact signature of the command's operation isn't known at compile time. In this case, we allow any invocation call to compile, but the command will reject unsuitable signatures at runtime, when fetching the operation functor.

Remarks
actually this kind of invocation is the default case, since commands are defined statically at application start-up and invoked via the UI-Bus by command-ID

Definition at line 104 of file command-invocation.hpp.

Public Attributes

Command com_
 

Public Member Functions

 RuntimeCheckedCommandInvoker (Command c)
 
template<typename... ARGS>
ExecResult operator() (ARGS &&...args)
 invoke command with arbitrary arguments
 

Constructor & Destructor Documentation

◆ RuntimeCheckedCommandInvoker()

Definition at line 108 of file command-invocation.hpp.

Member Function Documentation

◆ operator()()

template<typename... ARGS>
ExecResult operator() ( ARGS &&...  args)
inline

invoke command with arbitrary arguments

Warning
argument types will be checked at runtime only

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

References AcceptAnyBind< TAR, BA, RET >::bind(), and RuntimeCheckedCommandInvoker::com_.

+ Here is the call graph for this function:

Member Data Documentation

◆ com_

Command com_

Definition at line 106 of file command-invocation.hpp.

Referenced by RuntimeCheckedCommandInvoker::operator()().

+ Collaboration diagram for RuntimeCheckedCommandInvoker:

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