DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
dueca::CommObjectReaderWriter Class Reference

Base class with common elements for both anonymous/introspective read and write access to channel data. More...

#include <CommObjectReaderWriter.hxx>

Inheritance diagram for dueca::CommObjectReaderWriter:
Inheritance graph
[legend]

Public Member Functions

 CommObjectReaderWriter (const char *classname)
 Constructor, for testing purposes, and for recursively accessing complex objects.
 
 ~CommObjectReaderWriter ()
 Destructor.
 
const chargetMemberName (unsigned i) const
 Return an element name based on index.
 
const chargetMemberClass (unsigned i) const
 Return an element's class based on index.
 
const chargetMemberKeyClass (unsigned i) const
 Return an element's key class based on index.
 
MemberArity getMemberArity (unsigned i) const
 Return the member arity.
 
size_t getMemberSize (unsigned i) const
 Get member fixed length, if available.
 
const chargetClassname () 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.
 
CommObjectReaderWriteroperator= (const CommObjectReaderWriter &o)
 assignment, needed for temporary copy MSGPACKtoDCO
 

Protected Attributes

DataClassRegistry_entry_type entry
 entry giving the class information
 

Detailed Description

Base class with common elements for both anonymous/introspective read and write access to channel data.

Constructor & Destructor Documentation

◆ CommObjectReaderWriter()

dueca::CommObjectReaderWriter::CommObjectReaderWriter ( const char * classname)

Constructor, for testing purposes, and for recursively accessing complex objects.

Parameters
classnameType of data; must match, or the result is nonsense!

Member Function Documentation

◆ getMemberName()

const char * dueca::CommObjectReaderWriter::getMemberName ( unsigned i) const

Return an element name based on index.

Exceptions
DataClassMemberNotFound

◆ getMemberClass()

const char * dueca::CommObjectReaderWriter::getMemberClass ( unsigned i) const

Return an element's class based on index.

Exceptions
DataClassMemberNotFound

◆ getMemberKeyClass()

const char * dueca::CommObjectReaderWriter::getMemberKeyClass ( unsigned i) const

Return an element's key class based on index.

Exceptions
DataClassMemberNotFound

The documentation for this class was generated from the following file: