#include <commandbase.h>
Base command data interface as a simple data dictionary. It contains all the data and necessary functions to executed and interact with commands.
Classes |
|
class | SetFunctor |
Public Types |
|
using | SetParameters = Delegate < Result < void >(CommandDataRef &data)> |
公共成员函数 |
|
MAXON_FUNCTION Result < COMMANDRESULT > | Invoke (const Id &command, Bool interactive) |
MAXON_FUNCTION Result < COMMANDRESULT > | Invoke (const CommandClass &command, Bool interactive) |
MAXON_FUNCTION Result < COMMANDRESULT > | Invoke (const Id &command, Bool interactive, const SetParameters &setParameters) |
MAXON_FUNCTION Result < COMMANDRESULT > | Invoke (const CommandClass &command, Bool interactive, const SetParameters &setParameters) |
MAXON_FUNCTION Result < COMMANDRESULT > | Interact ( INTERACTIONTYPE interactionType) |
template<typename ... ARGS> | |
MAXON_FUNCTION Result < COMMANDRESULT > | Invoke (const CommandClass &command, Bool interactive, ARGS &&...args) |
私有成员函数 |
|
MAXON_INTERFACE ( CommandDataInterface , MAXON_REFERENCE_NORMAL , "net.maxon.command.interface.commanddata") |
using SetParameters = Delegate < Result <void>(CommandDataRef& data)> |
|
private |
MAXON_FUNCTION Result < COMMANDRESULT > Invoke | ( | const Id & | 命令 , |
Bool | interactive | ||
) |
Invokes a command on this data.
[in] | 命令 | The command ID. |
[in] | interactive | If true the command execution will be prepared for interactivity. The executed command must implement CommandInteractionClassInterface . |
MAXON_FUNCTION Result < COMMANDRESULT > Invoke | ( | const CommandClass & | 命令 , |
Bool | interactive | ||
) |
Invokes a command on this data.
[in] | 命令 | The command class. |
[in] | interactive | If true the command execution will be prepared for interactivity. The executed command must implement CommandInteractionClassInterface . |
MAXON_FUNCTION Result < COMMANDRESULT > Invoke | ( | const Id & | 命令 , |
Bool | interactive , | ||
const SetParameters & | setParameters | ||
) |
Invokes a command on this data.
[in] | 命令 | The command ID. |
[in] | interactive | If true, the command execution will be prepared for interactivity. The executed command must implement CommandInteractionClassInterface . |
[in] | setParameters | A delegate to fill the CommandData with command parameters. |
MAXON_FUNCTION Result < COMMANDRESULT > Invoke | ( | const CommandClass & | 命令 , |
Bool | interactive , | ||
const SetParameters & | setParameters | ||
) |
Invokes a command on this data.
[in] | 命令 | The command class. |
[in] | interactive | If true, the command execution will be prepared for interactivity. The executed command must implement CommandInteractionClassInterface . |
[in] | setParameters | A delegate to fill the CommandData with command parameters. |
MAXON_FUNCTION Result < COMMANDRESULT > Interact | ( | INTERACTIONTYPE | interactionType | ) |
Interact with the command result on this data. An interactive command must be called before this method is used.
[in] | interactionType | Define the kind of interaction, see INTERACTIONTYPE. |
MAXON_FUNCTION Result < COMMANDRESULT > Invoke | ( | const CommandClass & | 命令 , |
Bool | interactive , | ||
ARGS &&... | args | ||
) |