32 #ifndef TYPED_MESSAGE_H 33 #define TYPED_MESSAGE_H 46 namespace typed_message
89 virtual void init()=0;
void setMessageType(int message_type=industrial::simple_message::StandardMsgTypes::INVALID)
sets message type
virtual bool toTopic(industrial::simple_message::SimpleMessage &msg)
creates a simple_message topic
int comm_type_
Communications type (see simple_message::CommTypes::CommType)
This class defines a simple messaging protocol for communicating with an industrial robot controller...
virtual void init()=0
Initializes a new empty message.
Interface for loading and unloading a class to/from a ByteArray.
bool load(industrial::shared_types::shared_bool value)
loads a boolean into the byte array
virtual bool toRequest(industrial::simple_message::SimpleMessage &msg)
creates a simple_message request
void setCommType(int comm_type=industrial::simple_message::CommTypes::INVALID)
Sets the communication type of the message.
Message interface for typed messages built from SimpleMessage.
The byte array wraps a dynamic array of bytes (i.e. char).
int message_type_
Message type expected by callback.
int getCommType() const
Gets the communication type of the message.
bool init(int msgType, int commType, int replyCode, industrial::byte_array::ByteArray &data)
Initializes a fully populated simple message.
int getMessageType() const
gets message type (enumeration)
virtual bool toReply(industrial::simple_message::SimpleMessage &msg, industrial::simple_message::ReplyType reply)
creates a simple_message reply