DUECA/DUSIME
|
Base class with common elements for both anonymous/introspective read and write access to channel data. More...
Public Member Functions | |
CommObjectReaderWriter (const char *classname) | |
Constructor, for testing purposes, and for recursively accessing complex objects. More... | |
~CommObjectReaderWriter () | |
Destructor. | |
const char * | getMemberName (unsigned i) const |
Return an element name based on index. More... | |
const char * | getMemberClass (unsigned i) const |
Return an element's class based on index. More... | |
const char * | getMemberKeyClass (unsigned i) const |
Return an element's key class based on index. More... | |
MemberArity | getMemberArity (unsigned i) const |
Return the member arity. | |
size_t | getMemberSize (unsigned i) const |
Get member fixed length, if available. | |
const char * | getClassname () const |
Return the classname of the currently written or read type; typically for debugging messages. | |
size_t | getNumMembers () const |
Determine the number of members in the object. | |
CommObjectReaderWriter & | operator= (const CommObjectReaderWriter &o) |
assignment, needed for temporary copy MSGPACKtoDCO | |
Protected Attributes | |
DataClassRegistry_entry_type | entry |
entry giving the class information | |
Base class with common elements for both anonymous/introspective read and write access to channel data.
dueca::CommObjectReaderWriter::CommObjectReaderWriter | ( | const char * | classname | ) |
Constructor, for testing purposes, and for recursively accessing complex objects.
classname | Type of data; must match, or the result is nonsense! |
const char* dueca::CommObjectReaderWriter::getMemberName | ( | unsigned | i | ) | const |
Return an element name based on index.
DataClassMemberNotFound |
const char* dueca::CommObjectReaderWriter::getMemberClass | ( | unsigned | i | ) | const |
Return an element's class based on index.
DataClassMemberNotFound |
const char* dueca::CommObjectReaderWriter::getMemberKeyClass | ( | unsigned | i | ) | const |
Return an element's key class based on index.
DataClassMemberNotFound |