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

SCU for C-MOVE services. More...

#include <MoveSCU.h>

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

Public Types

typedef std::function< void(std::shared_ptr< 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(std::shared_ptr< message::CMoveResponse >) > MoveCallback
 Callback called when a C-MOVE response is received. More...
 

Public Member Functions

 MoveSCU (Association &association)
 Constructor. More...
 
std::string const & get_move_destination () const
 Return the AE title of the destination, defaults to "". More...
 
void set_move_destination (std::string const &move_destination)
 Set the AE title of the destination. More...
 
uint16_t get_incoming_port () const
 Return the port for incoming associations, defaults to 0. More...
 
void set_incoming_port (uint16_t port)
 Set the port for incoming associations, use 0 to disable. More...
 
void move (std::shared_ptr< DataSet > query, StoreCallback store_callback) const
 Perform the C-MOVE using callbacks. More...
 
void move (std::shared_ptr< DataSet > query, MoveCallback move_callback) const
 Perform the C-MOVE using callbacks. More...
 
void move (std::shared_ptr< DataSet > query, StoreCallback store_callback, MoveCallback move_callback) const
 Perform the C-MOVE using callbacks. More...
 
std::vector< std::shared_ptr< DataSet > > move (std::shared_ptr< 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-MOVE services.

Member Typedef Documentation

◆ Callback

Typedef to keep compatibility with previous versions.

Deprecated:
The StoreCallback typedef should now be used.

◆ MoveCallback

typedef std::function< void(std::shared_ptr<message::CMoveResponse>) > odil::MoveSCU::MoveCallback

Callback called when a C-MOVE response is received.

◆ StoreCallback

typedef std::function<void(std::shared_ptr<DataSet>)> odil::MoveSCU::StoreCallback

Callback called when a C-STORE request is received.

Constructor & Destructor Documentation

◆ MoveSCU()

odil::MoveSCU::MoveSCU ( Association association)

Constructor.

Member Function Documentation

◆ get_incoming_port()

uint16_t odil::MoveSCU::get_incoming_port ( ) const

Return the port for incoming associations, defaults to 0.

◆ get_move_destination()

std::string const& odil::MoveSCU::get_move_destination ( ) const

Return the AE title of the destination, defaults to "".

◆ move() [1/4]

std::vector<std::shared_ptr<DataSet> > odil::MoveSCU::move ( std::shared_ptr< DataSet query) const

Return a list of datasets matching the query.

◆ move() [2/4]

void odil::MoveSCU::move ( std::shared_ptr< DataSet query,
MoveCallback  move_callback 
) const

Perform the C-MOVE using callbacks.

◆ move() [3/4]

void odil::MoveSCU::move ( std::shared_ptr< DataSet query,
StoreCallback  store_callback 
) const

Perform the C-MOVE using callbacks.

◆ move() [4/4]

void odil::MoveSCU::move ( std::shared_ptr< DataSet query,
StoreCallback  store_callback,
MoveCallback  move_callback 
) const

Perform the C-MOVE using callbacks.

◆ set_incoming_port()

void odil::MoveSCU::set_incoming_port ( uint16_t  port)

Set the port for incoming associations, use 0 to disable.

◆ set_move_destination()

void odil::MoveSCU::set_move_destination ( std::string const &  move_destination)

Set the AE title of the destination.


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