CommandClassInterface Class Reference

#include <commandbase.h>

Inheritance diagram for CommandClassInterface:

详细描述

Generic command interface.

公共成员函数

MAXON_METHOD Result < COMMANDSTATE GetState (CommandDataRef &data) const
MAXON_METHOD Result < COMMANDRESULT Execute (CommandDataRef &data) const

私有成员函数

  MAXON_INTERFACE ( CommandClassInterface , MAXON_REFERENCE_CONST , "net.maxon.command.interface.command")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( CommandClassInterface   ,
MAXON_REFERENCE_CONST   ,
"net.maxon.command.interface.command"   
)
private

◆  GetState()

MAXON_METHOD Result < COMMANDSTATE > GetState ( CommandDataRef &  data ) const

Gets the command state, i.e. if it can be executed or not depending on a given data.

参数
[in,out] data The command data.
返回
The command state or an error.

◆  Execute()

MAXON_METHOD Result < COMMANDRESULT > Execute ( CommandDataRef &  data ) const

Executes the command.

参数
[in,out] data The command data.
返回
The command result or an error.