cisst-saw
|
Go to the source code of this file.
#define _cmnDataFunctionsMacros_h |
#define CMN_DATA_COPY_USING_ASSIGN | ( | _type | ) |
Macro to overload the function cmnDataCopy using the assignement operator to copy from source to data. This is a appropriate for data types without any dynamic memory allocations. For types using dynamic memory allocations or large blocks of memory, users should overload the cmnDataCopy function using a more efficient approach (memcpy, ...).
#define CMN_DATA_DE_SERIALIZE_BINARY_BUFFER_USING_CAST_TO_CHAR_AND_BYTE_SWAP | ( | _type | ) |
#define CMN_DATA_DE_SERIALIZE_BINARY_BUFFER_USING_CAST_TO_CHAR_NO_BYTE_SWAP | ( | _type | ) |
#define CMN_DATA_DE_SERIALIZE_BINARY_STREAM_USING_CAST_TO_CHAR_AND_BYTE_SWAP | ( | _type | ) |
#define CMN_DATA_DE_SERIALIZE_BINARY_STREAM_USING_CAST_TO_CHAR_NO_BYTE_SWAP | ( | _type | ) |
#define CMN_DATA_DE_SERIALIZE_TEXT_USING_STREAM_IN | ( | _type | ) |
Macro to overload the function cmnDataDeSerializeText using the C++ stream in operator.
#define CMN_DATA_HUMAN_READABLE_USING_STREAM_OUT | ( | _type | ) |
Macro to overload the function cmnDataHumanReadble using the C++ stream out operator.
#define CMN_DATA_IS_SPECIALIZED_TRUE | ( | _type | ) | enum {IS_SPECIALIZED = 1}; |
#define CMN_DATA_SCALAR_DESCRIPTION | ( | _type, | |
_description | |||
) |
Macro to overload the function cmnDataScalarDescription using the type name itself. For example, for a double it will return the string "double".
#define CMN_DATA_SCALAR_NUMBER_IS_FIXED_TRUE | ( | _type | ) |
#define CMN_DATA_SCALAR_NUMBER_IS_ONE | ( | _type | ) |
Macro to overload the function cmnDataScalarNumber, returns 1.
#define CMN_DATA_SCALAR_USING_STATIC_CAST | ( | _type | ) |
Macro to overload the function cmnDataScalar using a static_cast.
#define CMN_DATA_SERIALIZE_BINARY_BUFFER_USING_CAST_TO_CHAR | ( | _type | ) |
Macro to overload the function cmnDataSerializeBinary using a cast to char pointer and assuming that sizeof reports the real size of the object to be serialized. Please note that this method will not work with data object relying on dynamic memory allocation (pointers) and might also fail if you are using a struct/class your compiler can pad.
#define CMN_DATA_SERIALIZE_BINARY_BYTE_SIZE_USING_SIZEOF | ( | _type | ) |
#define CMN_DATA_SERIALIZE_BINARY_STREAM_USING_CAST_TO_CHAR | ( | _type | ) |
Macro to overload the function cmnDataSerializeBinary using a cast to char pointer and assuming that sizeof reports the real size of the object to be serialized. Please note that this method will not work with data object relying on dynamic memory allocation (pointers) and might also fail if you are using a struct/class your compiler can pad.
#define CMN_DATA_SERIALIZE_DESCRIPTION | ( | _type, | |
_description | |||
) |
Macro to overload the function cmnDataSerializeDescription.
#define CMN_DATA_SERIALIZE_TEXT_USING_STREAM_OUT | ( | _type | ) |
Macro to overload the function cmnDataSerializeText using the C++ stream out operator.
#define CMN_DATA_SPECIALIZE_ALL_BYTE_SWAP | ( | type, | |
description | |||
) |
#define CMN_DATA_SPECIALIZE_ALL_NO_BYTE_SWAP | ( | type, | |
description | |||
) |