24#ifndef _mtsGenericObject_h
25#define _mtsGenericObject_h
59 CMN_DECLARE_MEMBER_AND_ACCESSORS(
double, Timestamp);
66 CMN_DECLARE_MEMBER_AND_ACCESSORS(
bool, AutomaticTimestamp);
71 CMN_DECLARE_MEMBER_AND_ACCESSORS(
bool, Valid);
80 AutomaticTimestampMember(true),
86 TimestampMember(timestamp),
87 AutomaticTimestampMember(automaticTimestamp),
94 TimestampMember(other.TimestampMember),
95 AutomaticTimestampMember(other.AutomaticTimestampMember),
96 ValidMember(other.ValidMember)
106 TimestampMember = other.TimestampMember;
107 AutomaticTimestampMember = other.AutomaticTimestampMember;
108 ValidMember = other.ValidMember;
123 virtual void ToStream(std::ostream & outputStream)
const;
126 virtual void ToStreamRaw(std::ostream & outputStream,
const char delimiter =
' ',
127 bool headerOnly =
false,
const std::string & headerPrefix =
"")
const;
131 virtual bool FromStreamRaw(std::istream & inputStream,
const char delimiter =
' ');
static size_t ScalarNumber(const_pointer data)
Definition cmnDataFunctionsArray.h:134
static std::string ScalarDescription(const_pointer data, const size_t index, const std::string &userDescription="v") CISST_THROW(std
Definition cmnDataFunctionsArray.h:147
static bool ScalarNumberIsFixed(const_pointer data)
Definition cmnDataFunctionsArray.h:129
static void DeSerializeBinary(pointer data, std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std
Definition cmnDataFunctionsArray.h:117
static double Scalar(const_pointer data, const size_t index) CISST_THROW(std
Definition cmnDataFunctionsArray.h:163
static void DeSerializeText(pointer data, std::istream &inputStream, const char delimiter) CISST_THROW(std
Definition cmnDataFunctionsArray.h:75
static std::string SerializeDescription(const_pointer data, const char delimiter, const std::string &userDescription="v")
Definition cmnDataFunctionsArray.h:88
static void SerializeBinary(const_pointer data, std::ostream &outputStream) CISST_THROW(std
Definition cmnDataFunctionsArray.h:108
static void SerializeText(const_pointer data, std::ostream &outputStream, const char delimiter) CISST_THROW(std
Definition cmnDataFunctionsArray.h:62
static void Copy(pointer data, const_pointer source)
Definition cmnDataFunctionsArray.h:38
Definition cmnDataFunctions.h:51
Base class for high level objects.
Definition cmnGenericObject.h:53
virtual std::string ScalarDescription(const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
Definition cmnGenericObject.h:154
virtual double Scalar(const size_t CMN_UNUSED(index)) const CISST_THROW(std
Definition cmnGenericObject.h:145
Base class for data object in cisstMultiTask.
Definition mtsGenericObject.h:52
virtual void SerializeRaw(std::ostream &outputStream) const
virtual ~mtsGenericObject(void)
Definition mtsGenericObject.h:100
virtual void ToStream(std::ostream &outputStream) const
size_t ScalarNumber(void) const
mtsGenericObject(double timestamp, bool automaticTimestamp, bool valid)
Definition mtsGenericObject.h:85
mtsGenericObject(void)
Definition mtsGenericObject.h:77
virtual bool FromStreamRaw(std::istream &inputStream, const char delimiter=' ')
bool SetTimestampIfAutomatic(double timestamp)
bool ScalarNumberIsFixed(void) const
mtsGenericObject(const mtsGenericObject &other)
Definition mtsGenericObject.h:92
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
virtual void DeSerializeRaw(std::istream &inputStream)
ThisType & operator=(const vctDynamicConstNArrayBase< __nArrayOwnerType, __elementType, DIMENSION > &other)
Definition vctDynamicNArrayBase.h:401
Declaration of cmnDeSerializer and functions cmnDeSerializeRaw.
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Defines cmnGenericObject.
#define CISST_THROW(exceptionParameter)
Somewhat portable compilation warning message. This works with very recent versions of gcc (4....
Definition cmnPortability.h:559
Declaration of cmnSerializer and functions cmnSerializeRaw.
void CISST_EXPORT cmnData< mtsGenericObject >::DeSerializeText(mtsGenericObject &data, std::istream &inputStream, const char delimiter) CISST_THROW(std std::string CISST_EXPORT cmnData< mtsGenericObject >::HumanReadable(const mtsGenericObject &data)
Definition mtsGenericObject.h:163
ThisType & operator=(const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &otherMatrix)
Definition vctDynamicMatrix.h:255