cisst-saw
|
#include <mtsComponent.h>
Public Member Functions | |
mtsComponentConstructorNameAndArg () | |
mtsComponentConstructorNameAndArg (const std::string &name, const T &arg) | |
~mtsComponentConstructorNameAndArg () | |
void | SerializeRaw (std::ostream &outputStream) const |
void | DeSerializeRaw (std::istream &inputStream) |
void | ToStream (std::ostream &outputStream) const |
virtual void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter= ' ') |
![]() | |
mtsGenericObject (void) | |
mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid) | |
mtsGenericObject (const mtsGenericObject &other) | |
virtual | ~mtsGenericObject (void) |
bool | SetTimestampIfAutomatic (double timestamp) |
size_t | ScalarNumber (void) const |
bool | ScalarNumberIsFixed (void) const |
double | Scalar (const size_t index) const throw (std::out_of_range) |
std::string | ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range) |
![]() | |
virtual | ~cmnGenericObject (void) |
virtual const cmnClassServicesBase * | Services (void) const =0 |
bool | ReconstructFrom (const cmnGenericObject &other) |
std::string | ToString (void) const |
virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
virtual double | Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range) |
virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
Public Attributes | |
std::string | Name |
T | Arg |
mtsComponentConstructorNameAndArg<T> can be used to provide a name and additional argument (of type T) to a component constructor that takes a single argument. Type T must be streamable, and must be supported by cmnSerializeRaw and cmnDeSerializeRaw.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Binary deserialization
Reimplemented from mtsGenericObject.
|
inlinevirtual |
Read from an unformatted text input (e.g., one created by ToStreamRaw). Returns true if successful.
Reimplemented from mtsGenericObject.
|
inlinevirtual |
Binary serialization
Reimplemented from mtsGenericObject.
|
inlinevirtual |
Human readable text output. This method only streams the data members of mtsGenericObject, i.e. the Timestamp and Valid flag. It should be called by any derived class re-implementing ToStream.
Reimplemented from mtsGenericObject.
|
inlinevirtual |
Raw text output to stream
Reimplemented from mtsGenericObject.
T mtsComponentConstructorNameAndArg< T >::Arg |
std::string mtsComponentConstructorNameAndArg< T >::Name |