Go to the documentation of this file.
32 #ifndef TYPED_MESSAGE_H
33 #define TYPED_MESSAGE_H
46 namespace typed_message
89 virtual void init()=0;
virtual void init()=0
Initializes a new empty message.
bool init(int msgType, int commType, int replyCode, industrial::byte_array::ByteArray &data)
Initializes a fully populated simple message.
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
void setCommType(int comm_type=industrial::simple_message::CommTypes::INVALID)
Sets the communication type of the message.
This class defines a simple messaging protocol for communicating with an industrial robot controller.
virtual bool toRequest(industrial::simple_message::SimpleMessage &msg)
creates a simple_message request
The byte array wraps a dynamic array of bytes (i.e. char).
virtual bool toReply(industrial::simple_message::SimpleMessage &msg, industrial::simple_message::ReplyType reply)
creates a simple_message reply
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
int message_type_
Message type expected by callback.
int getCommType() const
Gets the communication type of the message.
Message interface for typed messages built from SimpleMessage.
int getMessageType() const
gets message type (enumeration)
int comm_type_
Communications type (see simple_message::CommTypes::CommType)
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53