ReportAuthority Message Implementation. More...
#include <ReportAuthority.h>
Inherits openjaus::model::Message.
Public Member Functions | |
| ReportAuthority () | |
| ReportAuthority (model::Message *message) | |
| ~ReportAuthority () | |
| 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. | |
| uint8_t | getAuthorityCode (void) |
| void | setAuthorityCode (uint8_t value) |
Static Public Attributes | |
| static const uint16_t | ID = 0x4001 |
Private Attributes | |
| model::fields::UnsignedByte | authorityCode |
This message is used to report the current command authority and associated time-out value.
| openjaus::core::ReportAuthority::ReportAuthority | ( | ) |
| openjaus::core::ReportAuthority::ReportAuthority | ( | model::Message * | message | ) |
| openjaus::core::ReportAuthority::~ReportAuthority | ( | ) |
| int openjaus::core::ReportAuthority::from | ( | system::Buffer * | src | ) | [virtual] |
src - The source openjaus::system::Buffer from which this message will be unpacked.
Reimplemented from openjaus::model::Message.
| uint8_t openjaus::core::ReportAuthority::getAuthorityCode | ( | void | ) |
| int openjaus::core::ReportAuthority::length | ( | void | ) | [virtual] |
The number of bytes this message would occupy in a buffer
Reimplemented from openjaus::model::Message.
| void openjaus::core::ReportAuthority::setAuthorityCode | ( | uint8_t | value | ) |
| int openjaus::core::ReportAuthority::to | ( | system::Buffer * | dst | ) | [virtual] |
dst - The destination openjaus::system::Buffer to which this message will be packed.
Reimplemented from openjaus::model::Message.
| std::string openjaus::core::ReportAuthority::toXml | ( | unsigned char | level = 0 |
) | const |
level - Used to determine how many tabs are inserted per line for pretty formating.
const uint16_t openjaus::core::ReportAuthority::ID = 0x4001 [static] |
1.7.1