49 namespace simple_message
56 namespace StandardMsgTypes
188 bool init(
int msgType,
int commType,
int replyCode,
200 bool init(
int msgType,
int commType,
int replyCode);
260 int getMsgLength() {
return this->getHeaderSize() + this->data_.getBufferSize();};
282 bool validateMessage();
int getDataLength()
Gets length of message data portion.
void init(const M_string &remappings)
void setReplyCode(int replyCode)
Sets reply code.
static const unsigned int LENGTH_SIZE
Size (in bytes) of message length parameter (fixed)
void setMessageType(int msgType)
Sets message type.
ReplyTypes::ReplyType ReplyType
static unsigned int getHeaderSize()
Gets size of message header in bytes(fixed)
This class defines a simple messaging protocol for communicating with an industrial robot controller...
int getMessageType()
Gets message type(see StandardMsgType)
industrial::shared_types::shared_int reply_code_
Reply code(see ReplyType)
The byte array wraps a dynamic array of bytes (i.e. char).
industrial::shared_types::shared_int message_type_
Message type(see StandardMsgType)
static const unsigned int HEADER_SIZE
Size(in bytes) of message header (fixed)
industrial::byte_array::ByteArray data_
Message data portion.
static unsigned int getLengthSize()
Gets size of message length member in bytes (fixed)
industrial::byte_array::ByteArray & getData()
Returns a reference to the internal data member.
void setCommType(int commType)
Sets communications type.
int getMsgLength()
Gets message length (total size, HEADER + data)
CommTypes::CommType CommType
int getReplyCode()
Gets reply code(see ReplyType)
int getCommType()
Gets message type(see CommType)
industrial::shared_types::shared_int comm_type_
Communications type(see CommType)