#include <message.h>
Inheritance diagram for TPProto::Message:

Public Member Functions | |
| Message () | |
| Default constructor. | |
| virtual | ~Message () |
| Required virtual destructor. | |
| void | packBuffer (Buffer *buf) |
| Pack this Message Frame into a Buffer. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpack this Message from a Buffer. | |
| unsigned int | getBoardId () |
| Gets the Board id number this Message is on. | |
| int | getSlot () |
| Gets the slot number this Message is in. | |
| unsigned int | getMessageType () |
| Gets the message type. | |
| std::string | getSubject () |
| Gets the subject of the message. | |
| std::string | getBody () |
| Gets the body text of the message. | |
| uint32_t | getTurnNum () const |
| Gets the turn number this message was posted on. | |
| std::map< int32_t, uint32_t > | getReferences () const |
| Gets the references for this message. | |
| void | setBoardId (unsigned int board) |
| Sets the Board id for the message. | |
| void | setSlot (int nsl) |
| Sets the slot number for this message to go into. | |
| void | setMessageType (unsigned int mt) |
| Sets the message type. | |
| void | setSubject (const std::string &ns) |
| Sets the subject. | |
| void | setBody (const std::string &nb) |
| Sets the body text. | |
| void | setReferences (std::map< int32_t, uint32_t > rs) |
| Sets the references for this message. | |
| void TPProto::Message::packBuffer | ( | Buffer * | buf | ) | [virtual] |
Pack this Message Frame into a Buffer.
| buf | The Buffer to pack into. |
Implements TPProto::Frame.
| bool TPProto::Message::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack this Message from a Buffer.
| buf | The Buffer to unpack out of. |
Implements TPProto::Frame.
| unsigned int TPProto::Message::getBoardId | ( | ) |
| int TPProto::Message::getSlot | ( | ) |
Gets the slot number this Message is in.
Can be -1 if it is to be the last message.
| unsigned int TPProto::Message::getMessageType | ( | ) |
Gets the message type.
| std::string TPProto::Message::getSubject | ( | ) |
Gets the subject of the message.
| std::string TPProto::Message::getBody | ( | ) |
Gets the body text of the message.
| uint32_t TPProto::Message::getTurnNum | ( | ) | const |
Gets the turn number this message was posted on.
| std::map< int32_t, uint32_t > TPProto::Message::getReferences | ( | ) | const |
Gets the references for this message.
| void TPProto::Message::setBoardId | ( | unsigned int | board | ) |
| void TPProto::Message::setSlot | ( | int | nsl | ) |
Sets the slot number for this message to go into.
Starts from 0. Can be -1 for the last slot. /param nsl The slot number.
| void TPProto::Message::setMessageType | ( | unsigned int | mt | ) |
Sets the message type.
| mt | The message type. |
| void TPProto::Message::setSubject | ( | const std::string & | ns | ) |
Sets the subject.
| ns | The subject. |
| void TPProto::Message::setBody | ( | const std::string & | nb | ) |
Sets the body text.
| nb | The body text. |
| void TPProto::Message::setReferences | ( | std::map< int32_t, uint32_t > | rs | ) |
Sets the references for this message.
| rs | The map of references. |
1.5.1