OpenJAUS Software Development Kit
4.3.1
|
#include <MessageField.h>
Inherits openjaus::model::fields::Field, and openjaus::system::Transportable.
Public Member Functions | |
MessageField () | |
virtual | ~MessageField () |
model::Message * | getMessage () const |
Accessor to get the value of message. More... | |
bool | setMessage (model::Message *message) |
Accessor to set value of message. More... | |
const system::Buffer & | getBuffer () const |
Accessor to get the value of buffer. More... | |
bool | setBuffer (const system::Buffer &buffer) |
Accessor to set value of buffer. More... | |
virtual int | to (system::Buffer *dst) |
Operation to. More... | |
virtual int | from (system::Buffer *src) |
Operation from. More... | |
virtual int | length () |
Serializes object to internal transport buffer. More... | |
virtual std::string | toString () const |
std::string | toXml (unsigned char level=0) const |
void | copy (model::Message *source) |
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 | |
virtual | ~Transportable () |
Transportable () | |
Protected Attributes | |
model::Message * | message |
system::Buffer | buffer |
Protected Attributes inherited from openjaus::model::fields::Field | |
std::string | name |
Friends | |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const MessageField &object) |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const MessageField *object) |
openjaus::model::fields::MessageField::MessageField | ( | ) |
|
virtual |
void openjaus::model::fields::MessageField::copy | ( | model::Message * | source | ) |
|
virtual |
src |
Implements openjaus::system::Transportable.
const system::Buffer & openjaus::model::fields::MessageField::getBuffer | ( | ) | const |
model::Message * openjaus::model::fields::MessageField::getMessage | ( | ) | const |
|
virtual |
Implements openjaus::system::Transportable.
bool openjaus::model::fields::MessageField::setBuffer | ( | const system::Buffer & | buffer | ) |
buffer | The value of the new buffer. |
bool openjaus::model::fields::MessageField::setMessage | ( | model::Message * | message | ) |
message | The value of the new message. |
|
virtual |
dst |
Implements openjaus::system::Transportable.
|
virtual |
Reimplemented from openjaus::model::fields::Field.
std::string openjaus::model::fields::MessageField::toXml | ( | unsigned char | level = 0 | ) | const |
|
friend |
|
friend |
|
protected |
|
protected |