OpenJAUS SAE SDK  6.0.0
Public Types | Public Member Functions | Private Attributes | List of all members
openjaus::environment_v1_0::RangeSensorDataVariant Class Reference

#include <RangeSensorDataVariant.h>

Inherits openjaus::model::fields::Variant.

Public Types

enum  TypeEnum { RANGESENSORDATAERRORREC = 0, RANGESENSORDATASEQ = 1 }
 

Public Member Functions

 RangeSensorDataVariant ()
 
 ~RangeSensorDataVariant ()
 
RangeSensorDataVariant::TypeEnum getType (void)
 
void setType (RangeSensorDataVariant::TypeEnum type)
 
void copy (RangeSensorDataVariant &source)
 
virtual uint64 to (system::BufferWriter &dst) const
 Serializes the contents of this object into the Buffer connected to the provided BufferWriter. More...
 
virtual uint64 from (system::BufferReader &src)
 Deserializes the contents the Buffer connected to the provided BufferReader into this object. More...
 
virtual uint64 length (void) const
 Gets the serialized length of this object. More...
 
std::string toXml (unsigned char ojIndentLevel=0) const
 
RangeSensorDataErrorRecRefRecordgetRangeSensorDataErrorRec (void)
 
RangeSensorDataSeqRecordgetRangeSensorDataSeq (void)
 
std::string typeToString (void)
 
- Public Member Functions inherited from openjaus::model::fields::Variant
 Variant ()
 
virtual ~Variant ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::model::fields::ComplexField
virtual ~ComplexField ()
 
- Public Member Functions inherited from openjaus::model::fields::Field
 Field ()
 
virtual ~Field ()
 
std::string getName () const
 Accessor to get the value of name. More...
 
bool setName (std::string name)
 Accessor to set value of name. More...
 
- Public Member Functions inherited from openjaus::system::Transportable
 Transportable ()
 
virtual ~Transportable ()
 

Private Attributes

TypeEnum type
 
RangeSensorDataErrorRecRefRecord rangeSensorDataErrorRec
 
RangeSensorDataSeqRecord rangeSensorDataSeq
 

Additional Inherited Members

- Protected Attributes inherited from openjaus::model::fields::Field
std::string name
 

Member Enumeration Documentation

◆ TypeEnum

Enumerator
RANGESENSORDATAERRORREC 
RANGESENSORDATASEQ 

Constructor & Destructor Documentation

◆ RangeSensorDataVariant()

openjaus::environment_v1_0::RangeSensorDataVariant::RangeSensorDataVariant ( )

◆ ~RangeSensorDataVariant()

openjaus::environment_v1_0::RangeSensorDataVariant::~RangeSensorDataVariant ( )

Member Function Documentation

◆ copy()

void openjaus::environment_v1_0::RangeSensorDataVariant::copy ( RangeSensorDataVariant source)

◆ from()

uint64 openjaus::environment_v1_0::RangeSensorDataVariant::from ( system::BufferReader src)
virtual

Deserializes the contents the Buffer connected to the provided BufferReader into this object. The BufferReader position will be advanced inside this method such that calling from() again will attempt to read the next Transportable object from the Buffer.

Parameters
src

Reimplemented from openjaus::model::fields::Variant.

◆ getRangeSensorDataErrorRec()

RangeSensorDataErrorRecRefRecord & openjaus::environment_v1_0::RangeSensorDataVariant::getRangeSensorDataErrorRec ( void  )

◆ getRangeSensorDataSeq()

RangeSensorDataSeqRecord & openjaus::environment_v1_0::RangeSensorDataVariant::getRangeSensorDataSeq ( void  )

◆ getType()

RangeSensorDataVariant::TypeEnum openjaus::environment_v1_0::RangeSensorDataVariant::getType ( void  )

◆ length()

uint64 openjaus::environment_v1_0::RangeSensorDataVariant::length ( void  ) const
virtual

Reimplemented from openjaus::model::fields::Variant.

◆ setType()

void openjaus::environment_v1_0::RangeSensorDataVariant::setType ( RangeSensorDataVariant::TypeEnum  type)

◆ to()

uint64 openjaus::environment_v1_0::RangeSensorDataVariant::to ( system::BufferWriter dst) const
virtual

Serializes the contents of this object into the Buffer connected to the provided BufferWriter. The BufferWriter position will be advanced inside this method such that calling to() again will write the Transportable object into the Buffer a second time.

Parameters
dst

Reimplemented from openjaus::model::fields::Variant.

◆ toXml()

std::string openjaus::environment_v1_0::RangeSensorDataVariant::toXml ( unsigned char  ojIndentLevel = 0) const

◆ typeToString()

std::string openjaus::environment_v1_0::RangeSensorDataVariant::typeToString ( void  )

Member Data Documentation

◆ rangeSensorDataErrorRec

RangeSensorDataErrorRecRefRecord openjaus::environment_v1_0::RangeSensorDataVariant::rangeSensorDataErrorRec
private

◆ rangeSensorDataSeq

RangeSensorDataSeqRecord openjaus::environment_v1_0::RangeSensorDataVariant::rangeSensorDataSeq
private

◆ type

TypeEnum openjaus::environment_v1_0::RangeSensorDataVariant::type
private

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