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

SCP for N-Create services. More...

#include <NCreateSCP.h>

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

Public Types

typedef std::function< Value::Integer(message::NCreateRequest const &)> Callback
 Callback called when a request is received, shall throw an SCP::Exception on error. More...
 

Public Member Functions

 NCreateSCP (Association &association)
 Constructor. More...
 
 NCreateSCP (Association &association, Callback const &callback)
 Constructor. More...
 
virtual ~NCreateSCP ()
 Destructor. More...
 
Callback const & get_callback () const
 Return the callback. More...
 
void set_callback (Callback const &callback)
 Set the callback. More...
 
virtual void operator() (message::Message const &message)
 Process a N-Create request. More...
 
virtual void operator() (message::Message &&message)
 Process a N-Create request. More...
 
- Public Member Functions inherited from odil::SCP
 SCP (Association &association)
 Create a Service Class Provider. More...
 
virtual ~SCP ()
 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-Create services.

Member Typedef Documentation

◆ Callback

Callback called when a request is received, shall throw an SCP::Exception on error.

Constructor & Destructor Documentation

◆ NCreateSCP() [1/2]

odil::NCreateSCP::NCreateSCP ( Association association)

Constructor.

◆ NCreateSCP() [2/2]

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

Constructor.

◆ ~NCreateSCP()

virtual odil::NCreateSCP::~NCreateSCP ( )
virtual

Destructor.

Member Function Documentation

◆ get_callback()

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

Return the callback.

◆ operator()() [1/2]

virtual void odil::NCreateSCP::operator() ( message::Message const &  message)
virtual

Process a N-Create request.

Implements odil::SCP.

◆ operator()() [2/2]

virtual void odil::NCreateSCP::operator() ( message::Message &&  message)
virtual

Process a N-Create request.

Implements odil::SCP.

◆ set_callback()

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

Set the callback.


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