Odil
A C++11 library for the DICOM standard
Public Types | Public Member Functions | List of all members
odil::NSetSCP Class Reference

SCP for N-Set services. More...

#include <NSetSCP.h>

Inheritance diagram for odil::NSetSCP:
Inheritance graph
[legend]
Collaboration diagram for odil::NSetSCP:
Collaboration graph
[legend]

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...
 
Callback const & 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...
 
- Public Member Functions inherited from odil::SCP
 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

- Protected Attributes inherited from odil::SCP
Association_association
 Association with peer. More...
 

Detailed Description

SCP for N-Set services.

Member Typedef Documentation

◆ Callback

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.

Constructor & Destructor Documentation

◆ NSetSCP() [1/2]

odil::NSetSCP::NSetSCP ( Association association)

Constructor.

◆ NSetSCP() [2/2]

odil::NSetSCP::NSetSCP ( Association association,
Callback const &  callback 
)

Constructor.

Member Function Documentation

◆ get_callback()

Callback const& odil::NSetSCP::get_callback ( ) const

Return the callback.

◆ operator()()

virtual void odil::NSetSCP::operator() ( std::shared_ptr< message::Message message)
virtual

Process a N-Set request.

Implements odil::SCP.

◆ set_callback()

void odil::NSetSCP::set_callback ( Callback const &  callback)

Set the callback.


The documentation for this class was generated from the following file: