Public Member Functions | Static Public Attributes | Private Attributes

openjaus::core::ReportStatus Class Reference

ReportStatus Message Implementation. More...

#include <ReportStatus.h>

Inherits openjaus::model::Message.

List of all members.

Public Member Functions

 ReportStatus ()
 ReportStatus (model::Message *message)
 ~ReportStatus ()
virtual int to (system::Buffer *dst)
 Pack this message to the given openjaus::system::Buffer.
virtual int from (system::Buffer *src)
 Unpack this message from the given openjaus::system::Buffer.
virtual int length ()
 Get the number of bytes this message would occupy in a serialized buffer.
std::string toXml (unsigned char level=0) const
 Used to serialize the runtime state of the message to an XML format.
StatusEnumeration::StatusEnum getStatus (void)
void setStatus (StatusEnumeration::StatusEnum value)

Static Public Attributes

static const uint16_t ID = 0x4002

Private Attributes

StatusEnumeration status

Detailed Description


Constructor & Destructor Documentation

openjaus::core::ReportStatus::ReportStatus (  ) 
openjaus::core::ReportStatus::ReportStatus ( model::Message message  ) 
openjaus::core::ReportStatus::~ReportStatus (  ) 

Member Function Documentation

int openjaus::core::ReportStatus::from ( system::Buffer src  )  [virtual]

src - The source openjaus::system::Buffer from which this message will be unpacked.

Returns:
The number of bytes unpacked from the source buffer

Reimplemented from openjaus::model::Message.

StatusEnumeration::StatusEnum openjaus::core::ReportStatus::getStatus ( void   ) 
int openjaus::core::ReportStatus::length ( void   )  [virtual]

The number of bytes this message would occupy in a buffer

Reimplemented from openjaus::model::Message.

void openjaus::core::ReportStatus::setStatus ( StatusEnumeration::StatusEnum  value  ) 
int openjaus::core::ReportStatus::to ( system::Buffer dst  )  [virtual]

dst - The destination openjaus::system::Buffer to which this message will be packed.

Returns:
The number of bytes packed into the destination buffer

Reimplemented from openjaus::model::Message.

std::string openjaus::core::ReportStatus::toXml ( unsigned char  level = 0  )  const

level - Used to determine how many tabs are inserted per line for pretty formating.

Returns:
The serialized XML string

Member Data Documentation

const uint16_t openjaus::core::ReportStatus::ID = 0x4002 [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines