Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
odil::StoreSCP Class Reference

SCP for C-Store services. More...

#include <StoreSCP.h>

Inheritance diagram for odil::StoreSCP:
Collaboration diagram for odil::StoreSCP:

Public Types

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

Public Member Functions

 StoreSCP (Association &association)
 Constructor.
 StoreSCP (Association &association, Callback const &callback)
 Constructor.
Callback const & get_callback () const
 Return the callback.
void set_callback (Callback const &callback)
 Set the callback.
void operator() (std::shared_ptr< message::CStoreRequest > request)
 Process a C-Store request.
virtual void operator() (std::shared_ptr< message::Message > message)
 Process a C-Store request.
Public Member Functions inherited from odil::SCP
 SCP (Association &association)
 Create a Service Class Provider.
virtual ~SCP ()=default
 Destructor.
void receive_and_process ()
 Receive and process a message.

Additional Inherited Members

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

Detailed Description

SCP for C-Store services.

Member Typedef Documentation

◆ Callback

typedef std::function< Value::Integer(std::shared_ptr<message::CStoreRequest>) > odil::StoreSCP::Callback

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

Constructor & Destructor Documentation

◆ StoreSCP() [1/2]

odil::StoreSCP::StoreSCP ( Association & association)

Constructor.

◆ StoreSCP() [2/2]

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

Constructor.

Member Function Documentation

◆ get_callback()

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

Return the callback.

◆ operator()() [1/2]

void odil::StoreSCP::operator() ( std::shared_ptr< message::CStoreRequest > request)

Process a C-Store request.

◆ operator()() [2/2]

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

Process a C-Store request.

Implements odil::SCP.

◆ set_callback()

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

Set the callback.


The documentation for this class was generated from the following file:
  • /build/reproducible-path/odil-0.13.0/src/odil/StoreSCP.h