#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)> | 
Public Member Functions | |
| 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) | 
Private Member Functions | |
| 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 & | command, | 
| Bool | interactive | ||
| ) | 
Invokes a command on this data.
| [in] | command | 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 & | command, | 
| Bool | interactive | ||
| ) | 
Invokes a command on this data.
| [in] | command | 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 & | command, | 
| Bool | interactive, | ||
| const SetParameters & | setParameters | ||
| ) | 
Invokes a command on this data.
| [in] | command | 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 & | command, | 
| Bool | interactive, | ||
| const SetParameters & | setParameters | ||
| ) | 
Invokes a command on this data.
| [in] | command | 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 & | command, | 
| Bool | interactive, | ||
| ARGS &&... | args | ||
| ) |