Go to the documentation of this file.
32 #ifndef MESSAGE_HANDLER_H
33 #define MESSAGE_HANDLER_H
45 namespace message_handler
158 this->connection_ = connection;
178 #endif //MESSAGE_HANDLER_H
bool validateMsg(industrial::simple_message::SimpleMessage &in)
Validates incoming message for processing by internal callback.
bool callback(industrial::simple_message::SimpleMessage &in)
Callback function that should be executed when a message arrives DO NOT OVERRIDE THIS FUNCTION....
~MessageHandler()
Destructor.
Interface definition for message handlers. The interface defines the callback function that should ex...
industrial::smpl_msg_connection::SmplMsgConnection * getConnection()
Gets connectoin for message replies.
bool init(int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection)
Class initializer.
MessageHandler()
Constructor.
void setMsgType(int msg_type)
Sets message type that callback expects.
This class defines a simple messaging protocol for communicating with an industrial robot controller.
industrial::smpl_msg_connection::SmplMsgConnection * connection_
Reference to reply connection (called if incoming message requires a reply)
virtual bool internalCB(industrial::simple_message::SimpleMessage &in)=0
Virtual callback function.
Defines an interface and common methods for sending simple messages (see simple_message)....
int getMsgType()
Gets message type that callback expects.
int msg_type_
Message type expected by callback.
void setConnection(industrial::smpl_msg_connection::SmplMsgConnection *connection)
Sets connection for message replies.
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53