Odil
A C++11 library for the DICOM standard
|
SCP for N-Set services. More...
#include <NSetSCP.h>
Public Types | |
typedef std::function< Value::Integer(std::shared_ptr< message::NSetRequest const >) > | Callback |
Callback called when a request is received, shall throw an SCP::Exception on error. More... | |
Public Member Functions | |
NSetSCP (Association &association) | |
Constructor. More... | |
NSetSCP (Association &association, Callback const &callback) | |
Constructor. More... | |
const Callback & | get_callback () const |
Return the callback. More... | |
void | set_callback (Callback const &callback) |
Set the callback. More... | |
virtual void | operator() (std::shared_ptr< message::Message > message) |
Process a N-Set request. More... | |
![]() | |
SCP (Association &association) | |
Create a Service Class Provider. More... | |
virtual | ~SCP ()=default |
Destructor. More... | |
void | receive_and_process () |
Receive and process a message. More... | |
Additional Inherited Members | |
![]() | |
Association & | _association |
Association with peer. More... | |
SCP for N-Set services.
typedef std::function< Value::Integer(std::shared_ptr<message::NSetRequest const>) > odil::NSetSCP::Callback |
Callback called when a request is received, shall throw an SCP::Exception on error.
odil::NSetSCP::NSetSCP | ( | Association & | association | ) |
Constructor.
odil::NSetSCP::NSetSCP | ( | Association & | association, |
Callback const & | callback | ||
) |
Constructor.
const Callback& odil::NSetSCP::get_callback | ( | ) | const |
Return the callback.
|
virtual |
Process a N-Set request.
Implements odil::SCP.
void odil::NSetSCP::set_callback | ( | Callback const & | callback | ) |
Set the callback.