9 #ifndef _1a61d976_ba12_4dba_af34_67f064d38506 10 #define _1a61d976_ba12_4dba_af34_67f064d38506 14 #include "odil/Association.h" 16 #include "odil/Value.h" 17 #include "odil/message/CEchoRequest.h" 18 #include "odil/message/Message.h" 28 typedef std::function<Value::Integer(message::CEchoRequest const &)>
Callback;
46 virtual void operator()(message::Message
const & message);
54 #endif // _1a61d976_ba12_4dba_af34_67f064d38506 std::function< Value::Integer(message::CEchoRequest const &)> Callback
Callback called when a request is received.
Definition: EchoSCP.h:28
EchoSCP(Association &association)
Constructor.
Definition: EchoSCP.cpp:24
SCP for C-Echo services.
Definition: EchoSCP.h:24
Definition: Association.cpp:39
Base class for all Service Class Providers.
Definition: SCP.h:21
void set_callback(Callback const &callback)
Set the callback.
Definition: EchoSCP.cpp:51
virtual void operator()(message::Message const &message)
Process a C-Echo request.
Definition: EchoSCP.cpp:58
virtual ~EchoSCP()
Destructor.
Definition: EchoSCP.cpp:38
Callback const & get_callback() const
Return the callback.
Definition: EchoSCP.cpp:44
Association.
Definition: Association.h:29