OpenDaVINCI  4.16.0
odcore::base::Visitor Class Referenceabstract

#include <Visitor.h>

Inheritance diagram for odcore::base::Visitor:
Inheritance graph

Public Member Functions

virtual ~Visitor ()
 
virtual void beginVisit (const int32_t &id, const string &shortName, const string &longName)=0
 
virtual void endVisit ()=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, odcore::serialization::Serializable &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, bool &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, char &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, unsigned char &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int8_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int16_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint16_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int32_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint32_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int64_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint64_t &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, float &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, double &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, string &v)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &size)=0
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &count, const odcore::TYPE_ &t)=0
 

Detailed Description

This interface defines methods used by visitors.

Constructor & Destructor Documentation

odcore::base::Visitor::~Visitor ( )
virtual

Member Function Documentation

virtual void odcore::base::Visitor::beginVisit ( const int32_t &  id,
const string &  shortName,
const string &  longName 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
odcore::serialization::Serializable v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
bool &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
char &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
unsigned char &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int8_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int16_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint16_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int32_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint32_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int64_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint64_t &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
float &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
double &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
string &  v 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
void *  data,
const uint32_t &  size 
)
pure virtual
virtual void odcore::base::Visitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
void *  data,
const uint32_t &  count,
const odcore::TYPE_ t 
)
pure virtual

This method visits undefined data of length size.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
dataData to be serialized.
countNumber of elements in the fixed-sized array.
tData type for an element.

Implemented in odcore::serialization::LCMDeserializerVisitor, odcore::serialization::LCMSerializerVisitor, odcore::serialization::ROSSerializerVisitor, odcore::serialization::ROSDeserializerVisitor, odcore::reflection::CSVFromVisitableVisitor, odcore::reflection::MessagePrettyPrinterVisitor, odcore::serialization::QueryableNetstringsSerializerVisitor, odcore::serialization::QueryableNetstringsDeserializerVisitor, odcore::reflection::MessageToVisitableVisitor, odcore::reflection::MessageFromVisitableVisitor, odcore::serialization::ProtoSerializerVisitor, and odcore::serialization::ProtoDeserializerVisitor.