41 namespace message_handler
49 this->setConnection(NULL);
65 if (NULL != connection)
67 this->setConnection(connection);
68 this->setMsgType(msg_type);
79 LOG_ERROR(
"Message handler type: %d, not valid", msg_type);
98 LOG_ERROR(
"Invalid message passed to callback");
118 LOG_WARN(
"Message type: %d, doesn't match handler type: %d",
125 LOG_WARN(
"Passed in message invalid");
bool validateMessage()
performs logical checks to ensure that the message is fully defined and adheres to the message conven...
Defines an interface and common methods for sending simple messages (see simple_message). This interface makes a bare minimum of assumptions:
#define LOG_WARN(format,...)
bool callback(industrial::simple_message::SimpleMessage &in)
Callback function that should be executed when a message arrives DO NOT OVERRIDE THIS FUNCTION...
This class defines a simple messaging protocol for communicating with an industrial robot controller...
int getMessageType()
Gets message type(see StandardMsgType)
#define LOG_ERROR(format,...)
bool validateMsg(industrial::simple_message::SimpleMessage &in)
Validates incoming message for processing by internal callback.
~MessageHandler()
Destructor.
MessageHandler()
Constructor.
bool init(int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection)
Class initializer.