|
cisst-saw
|
#include <mtsComponentState.h>
Public Types | |
| enum | Enum { CONSTRUCTED , INITIALIZING , READY , ACTIVE , FINISHING , FINISHED } |
| typedef mtsComponentState | ThisType |
Public Member Functions | |
| mtsComponentState (void) | |
| mtsComponentState (const mtsComponentState &other) | |
| mtsComponentState & | operator= (const mtsComponentState &other) |
| ~mtsComponentState () | |
| void | GetState (mtsComponentState::Enum &placeHolder) const |
| mtsComponentState::Enum | GetState (void) const |
| void | SetState (const mtsComponentState::Enum &newValue) |
| const mtsComponentState::Enum & | State (void) const |
| mtsComponentState::Enum & | State (void) |
| const ThisType & | operator= (const Enum &value) |
| bool | operator== (const ThisType &state) const |
| bool | operator!= (const ThisType &state) const |
| bool | operator< (const ThisType &state) const |
| bool | operator<= (const ThisType &state) const |
| bool | operator> (const ThisType &state) const |
| bool | operator>= (const ThisType &state) const |
| mtsComponentState (const mtsComponentState::Enum &newState) | |
| void | SerializeRaw (std::ostream &outputStream) const |
| void | DeSerializeRaw (std::istream &inputStream) |
| void | ToStream (std::ostream &outputStream) const |
| void | ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const |
| void | Copy (const mtsComponentState &source) |
| bool | ScalarNumberIsFixed (void) const |
| size_t | ScalarNumber (void) const |
Static Public Member Functions | |
| static const std::vector< std::string > & | EnumVectorString (void) |
Public Attributes | |
| void SerializeBinary(std::ostream &outputStream) const CISST_THROW(std void DeSerializeBinary(std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std void SerializeText(std::ostream &outputStream, const char delimiter=',') const CISST_THROW(std std::string | SerializeDescription (const char delimiter=',', const std::string &userDescription="") const |
| void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string | HumanReadable (void) const |
Static Public Attributes | |
| static std::string static EnumToString(const Enum &value) CISST_THROW(std Enum static EnumFromString(const std::string &value) CISST_THROW(std const std::vector< int > & | EnumVectorInt (void) |
Protected Attributes | |
| mtsComponentState::Enum | mState |
The possible component states: CONSTRUCTED – Initial state set by mtsTask constructor. INITIALIZING – Set by mtsComponent::Create. The task stays in this state until the thread calls mtsTask::RunInternal, which calls mtsTask::StartupInternal and the user-supplied mtsTask::Startup. If a new thread is created, the call to mtsTask::RunInternal happens some time after the call to mtsTask::Create. READY – Set by mtsTask::StartupInternal. This means that the task is ready to be used (i.e., all interfaces have been initialized). Also, a task can return to the READY state (from the ACTIVE state) in response to a call to mtsTask::Suspend. ACTIVE – Set by mtsTask::Start. This is the normal running state, where the task is calling the user-supplied mtsTask::Run method. FINISHING – Set by mtsTask::Kill. If the mtsTask::Run method is currently executing, it will finish, but no further calls will be made. The task will then call mtsTask::CleanupInternal, which calls the user-supplied mtsTask::Cleanup. The state will then be set to FINISHED. FINISHED – The task has finished.
| Enumerator | |
|---|---|
| CONSTRUCTED | |
| INITIALIZING | |
| READY | |
| ACTIVE | |
| FINISHING | |
| FINISHED | |
| mtsComponentState::mtsComponentState | ( | void | ) |
| mtsComponentState::mtsComponentState | ( | const mtsComponentState & | other | ) |
| mtsComponentState::~mtsComponentState | ( | ) |
| mtsComponentState::mtsComponentState | ( | const mtsComponentState::Enum & | newState | ) |
| void mtsComponentState::Copy | ( | const mtsComponentState & | source | ) |
| void mtsComponentState::DeSerializeRaw | ( | std::istream & | inputStream | ) |
|
static |
| void mtsComponentState::GetState | ( | mtsComponentState::Enum & | placeHolder | ) | const |
|
inline |
| bool mtsComponentState::operator!= | ( | const ThisType & | state | ) | const |
| bool mtsComponentState::operator< | ( | const ThisType & | state | ) | const |
Lesser or equal operators
| bool mtsComponentState::operator<= | ( | const ThisType & | state | ) | const |
| mtsComponentState & mtsComponentState::operator= | ( | const mtsComponentState & | other | ) |
| bool mtsComponentState::operator== | ( | const ThisType & | state | ) | const |
Equality operators
| bool mtsComponentState::operator> | ( | const ThisType & | state | ) | const |
Greater or equal operators
| bool mtsComponentState::operator>= | ( | const ThisType & | state | ) | const |
| size_t mtsComponentState::ScalarNumber | ( | void | ) | const |
| bool mtsComponentState::ScalarNumberIsFixed | ( | void | ) | const |
| void mtsComponentState::SerializeRaw | ( | std::ostream & | outputStream | ) | const |
| void mtsComponentState::SetState | ( | const mtsComponentState::Enum & | newValue | ) |
| mtsComponentState::Enum & mtsComponentState::State | ( | void | ) |
| const mtsComponentState::Enum & mtsComponentState::State | ( | void | ) | const |
| void mtsComponentState::ToStream | ( | std::ostream & | outputStream | ) | const |
| void mtsComponentState::ToStreamRaw | ( | std::ostream & | outputStream, |
| const char | delimiter = ' ', | ||
| bool | headerOnly = false, | ||
| const std::string & | headerPrefix = "" ) const |
|
static |
| void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string mtsComponentState::HumanReadable(void) const |
|
protected |
| void SerializeBinary(std::ostream &outputStream) const CISST_THROW(std void DeSerializeBinary(std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std void SerializeText(std::ostream &outputStream, const char delimiter=',') const CISST_THROW(std std::string mtsComponentState::SerializeDescription(const char delimiter=',', const std::string &userDescription="") const |