DUECA/DUSIME
Loading...
Searching...
No Matches
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:

Public Member Functions

 CommObjectReaderWriter (const char *classname)
 Constructor, for testing purposes, and for recursively accessing complex objects.
 ~CommObjectReaderWriter ()
 Destructor.
const char * getMemberName (unsigned i) const
 Return an element name based on index.
const char * getMemberClass (unsigned i) const
 Return an element's class based on index.
const char * getMemberKeyClass (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 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.
const CommObjectMemberAccessBase & getMemberAccessor (unsigned i) const
 Directly reach the MemberAccess 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:
  • /home/abuild/rpmbuild/BUILD/dueca-4.2.8-build/dueca-4.2.8/dueca/CommObjectReaderWriter.hxx