ping_handler.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2011, Southwest Research Institute
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * * Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  * * Neither the name of the Southwest Research Institute, nor the names
16  * of its contributors may be used to endorse or promote products derived
17  * from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 
33 #ifndef PING_HANDLER_H
34 #define PING_HANDLER_H
35 
36 #ifndef FLATHEADERS
38 #else
39 #include "message_handler.h"
40 #endif
41 
42 
43 namespace industrial
44 {
45 namespace ping_handler
46 {
47 
51 //* MessageHandler
61 {
62 
63 public:
72 
82 { return MessageHandler::init(msg_type, connection);};
83 
84 
85 private:
86 
87 
88 
97 };
98 
99 }//ping_handler
100 }//industrial
101 
102 
103 #endif /* PING_HANDLER_H_ */
industrial::message_handler::MessageHandler
Interface definition for message handlers. The interface defines the callback function that should ex...
Definition: message_handler.h:61
industrial
Definition: byte_array.h:45
industrial::ping_handler::PingHandler::init
bool init(int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection)
Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to w...
Definition: ping_handler.h:81
message_handler.h
industrial::simple_message::SimpleMessage
This class defines a simple messaging protocol for communicating with an industrial robot controller.
Definition: simple_message.h:164
industrial::smpl_msg_connection::SmplMsgConnection
Defines an interface and common methods for sending simple messages (see simple_message)....
Definition: smpl_msg_connection.h:61
industrial::ping_handler::PingHandler::init
bool init(industrial::smpl_msg_connection::SmplMsgConnection *connection)
Class initializer.
Definition: ping_handler.cpp:50
industrial::ping_handler::PingHandler::internalCB
bool internalCB(industrial::simple_message::SimpleMessage &in)
Callback executed upon receiving a ping message.
Definition: ping_handler.cpp:55
msg_type
def msg_type(f)
industrial::ping_handler::PingHandler
Message handler that handles ping messages.
Definition: ping_handler.h:60


simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53