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

SCU for C-GET services. More...

#include <GetSCU.h>

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

Public Types

typedef std::function< void(DataSet &&)> StoreCallback
 Callback called when a C-STORE request is received. More...
 
typedef StoreCallback Callback
 Typedef to keep compatibility with previous versions. More...
 
typedef std::function< void(message::CGetResponse &&)> GetCallback
 Callback called when a C-GET response is received. More...
 

Public Member Functions

 GetSCU (Association &association)
 Constructor. More...
 
virtual ~GetSCU ()
 Destructor. More...
 
void get (DataSet const &query, StoreCallback store_callback, GetCallback get_callback=GetCallback()) const
 Perform the C-GET using callbacks. More...
 
void get (DataSet &&query, StoreCallback store_callback, GetCallback get_callback=GetCallback()) const
 Perform the C-GET using callbacks. More...
 
std::vector< DataSetget (DataSet const &query) const
 Return a list of datasets matching the query. More...
 
std::vector< DataSetget (DataSet &&query) const
 Return a list of datasets matching the query. More...
 
- Public Member Functions inherited from odil::SCU
 SCU (Association &association)
 Create a default Service Class User. More...
 
virtual ~SCU ()
 Destructor. More...
 
std::string const & get_affected_sop_class () const
 Return the affected SOP class. Defaults to "". More...
 
void set_affected_sop_class (std::string const &sop_class)
 Set the affected SOP class. More...
 

Additional Inherited Members

- Protected Attributes inherited from odil::SCU
Association_association
 Association with peer. More...
 
std::string _affected_sop_class
 Affected SOP class. More...
 

Detailed Description

SCU for C-GET services.

Member Typedef Documentation

◆ Callback

Typedef to keep compatibility with previous versions.

Deprecated:
The StoreCallback typedef should now be used.

◆ GetCallback

typedef std::function<void(message::CGetResponse &&)> odil::GetSCU::GetCallback

Callback called when a C-GET response is received.

◆ StoreCallback

typedef std::function<void(DataSet &&)> odil::GetSCU::StoreCallback

Callback called when a C-STORE request is received.

Constructor & Destructor Documentation

◆ GetSCU()

odil::GetSCU::GetSCU ( Association association)

Constructor.

◆ ~GetSCU()

virtual odil::GetSCU::~GetSCU ( )
virtual

Destructor.

Member Function Documentation

◆ get() [1/4]

void odil::GetSCU::get ( DataSet const &  query,
StoreCallback  store_callback,
GetCallback  get_callback = GetCallback() 
) const

Perform the C-GET using callbacks.

◆ get() [2/4]

void odil::GetSCU::get ( DataSet &&  query,
StoreCallback  store_callback,
GetCallback  get_callback = GetCallback() 
) const

Perform the C-GET using callbacks.

◆ get() [3/4]

std::vector<DataSet> odil::GetSCU::get ( DataSet const &  query) const

Return a list of datasets matching the query.

◆ get() [4/4]

std::vector<DataSet> odil::GetSCU::get ( DataSet &&  query) const

Return a list of datasets matching the query.


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