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" 31 typedef std::function<Value::Integer(message::CEchoRequest const &)>
Callback;
49 virtual void operator()(message::Message
const & message);
57 #endif // _1a61d976_ba12_4dba_af34_67f064d38506 std::function< Value::Integer(message::CEchoRequest const &)> Callback
Callback called when a request is received, shall throw an SCP::Exception on error.
Definition: EchoSCP.h:31
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:23
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
Association.
Definition: Association.h:29
Callback const & get_callback() const
Return the callback.
Definition: EchoSCP.cpp:44