#include <mtsCommandBase.h>
mtsCommandBase::mtsCommandBase |
( |
void |
| ) |
|
|
inline |
The constructor. Does nothing
mtsCommandBase::mtsCommandBase |
( |
const std::string & |
name | ) |
|
|
inline |
Constructor with command name.
virtual mtsCommandBase::~mtsCommandBase |
( |
| ) |
|
|
inlinevirtual |
The destructor. Does nothing
void mtsCommandBase::Disable |
( |
void |
| ) |
|
|
inline |
void mtsCommandBase::Enable |
( |
void |
| ) |
|
|
inline |
Set and access the "enable" flag. This flag is used to determine if the command actually uses the provided method or function when it is executed.
const std::string& mtsCommandBase::GetName |
( |
void |
| ) |
const |
|
inline |
Get the command name. This method doesn't allow to change the command name.
bool mtsCommandBase::IsDisabled |
( |
void |
| ) |
const |
|
inline |
bool mtsCommandBase::IsEnabled |
( |
void |
| ) |
const |
|
inline |
virtual size_t mtsCommandBase::NumberOfArguments |
( |
void |
| ) |
const |
|
pure virtual |
virtual bool mtsCommandBase::Returns |
( |
void |
| ) |
const |
|
pure virtual |
virtual void mtsCommandBase::ToStream |
( |
std::ostream & |
outputStream | ) |
const |
|
pure virtual |
Implemented in mtsCommandWriteGeneric< _classType >, mtsCommandQueuedWriteGeneric, mtsCommandWrite< _classType, _argumentType >, mtsCommandWriteReturn, mtsCommandQualifiedRead, mtsCommandVoidReturn, mtsCommandRead, mtsCommandQueuedVoid, mtsCommandVoid, mtsCommandQueuedWriteBase, mtsMulticastCommandVoid, mtsMulticastCommandWriteBase, and mtsCommandFilteredWrite.
virtual std::string mtsCommandBase::ToString |
( |
void |
| ) |
const |
|
inlinevirtual |
For debugging. Generate a human readable output for the command object
bool mtsCommandBase::EnableFlag |
|
protected |
Flag used to determine is the command actually executes the provided method or function. This "gated" command can be useful to turn on/off and event callback or to prevent calling a method owned by an object being deleted.
std::string mtsCommandBase::Name |
|
protected |
Name used for the command. The name is provided to the constructor and can be accessed using the method GetName().
The documentation for this class was generated from the following file: