Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
MoveSCU.h
Go to the documentation of this file.
1
/*************************************************************************
2
* odil - Copyright (C) Universite de Strasbourg
3
* Distributed under the terms of the CeCILL-B license, as published by
4
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6
* for details.
7
************************************************************************/
8
9
#ifndef _5ff4d940_4db7_4d85_9d3a_230b944b31fe
10
#define _5ff4d940_4db7_4d85_9d3a_230b944b31fe
11
12
#include <functional>
13
#include <string>
14
#include <vector>
15
16
#include "
odil/Association.h
"
17
#include "
odil/DataSet.h
"
18
#include "
odil/message/CMoveRequest.h
"
19
#include "
odil/message/CMoveResponse.h
"
20
#include "
odil/odil.h
"
21
#include "
odil/SCU.h
"
22
23
namespace
odil
24
{
25
27
class
ODIL_API
MoveSCU
:
public
SCU
28
{
29
public
:
31
typedef
std::function<void(std::shared_ptr<DataSet>)>
StoreCallback
;
32
37
typedef
StoreCallback
Callback
;
38
40
typedef
std::function<
41
void(std::shared_ptr<message::CMoveResponse>)
42
>
MoveCallback
;
43
45
MoveSCU
(
Association
& association);
46
48
std::string
const
&
get_move_destination
()
const
;
50
void
set_move_destination
(std::string
const
& move_destination);
51
53
uint16_t
get_incoming_port
()
const
;
54
56
void
set_incoming_port
(uint16_t port);
57
59
void
move
(
60
std::shared_ptr<DataSet> query,
StoreCallback
store_callback)
const
;
61
63
void
move
(
64
std::shared_ptr<DataSet> query,
MoveCallback
move_callback)
const
;
65
67
void
move
(
68
std::shared_ptr<DataSet> query,
StoreCallback
store_callback,
69
MoveCallback
move_callback)
const
;
70
74
std::vector<std::shared_ptr<DataSet>>
move
(
75
std::shared_ptr<DataSet> query)
const
;
76
77
private
:
78
std::string _move_destination;
79
uint16_t _incoming_port;
80
81
void
_move(
82
std::shared_ptr<message::CMoveRequest const> request,
83
StoreCallback
store_callback,
MoveCallback
move_callback)
const
;
84
85
void
_dispatch(
86
Association
& store_association,
StoreCallback
store_callback,
87
MoveCallback
move_callback)
const
;
88
89
bool
_handle_main_association(
MoveCallback
callback)
const
;
90
bool
_handle_store_association(
91
Association
& association,
StoreCallback
callback)
const
;
92
};
93
94
}
95
96
#endif
// _5ff4d940_4db7_4d85_9d3a_230b944b31fe
Association.h
CMoveRequest.h
CMoveResponse.h
DataSet.h
SCU.h
odil::Association
Association.
Definition
Association.h:31
odil::MoveSCU::StoreCallback
std::function< void(std::shared_ptr< DataSet >)> StoreCallback
Callback called when a C-STORE request is received.
Definition
MoveSCU.h:31
odil::MoveSCU::MoveSCU
MoveSCU(Association &association)
Constructor.
odil::MoveSCU::move
std::vector< std::shared_ptr< DataSet > > move(std::shared_ptr< DataSet > query) const
Return a list of datasets matching the query.
odil::MoveSCU::get_incoming_port
uint16_t get_incoming_port() const
Return the port for incoming associations, defaults to 0.
odil::MoveSCU::move
void move(std::shared_ptr< DataSet > query, MoveCallback move_callback) const
Perform the C-MOVE using callbacks.
odil::MoveSCU::move
void move(std::shared_ptr< DataSet > query, StoreCallback store_callback) const
Perform the C-MOVE using callbacks.
odil::MoveSCU::set_incoming_port
void set_incoming_port(uint16_t port)
Set the port for incoming associations, use 0 to disable.
odil::MoveSCU::set_move_destination
void set_move_destination(std::string const &move_destination)
Set the AE title of the destination.
odil::MoveSCU::MoveCallback
std::function< void(std::shared_ptr< message::CMoveResponse >) > MoveCallback
Callback called when a C-MOVE response is received.
Definition
MoveSCU.h:42
odil::MoveSCU::Callback
StoreCallback Callback
Typedef to keep compatibility with previous versions.
Definition
MoveSCU.h:37
odil::MoveSCU::move
void move(std::shared_ptr< DataSet > query, StoreCallback store_callback, MoveCallback move_callback) const
Perform the C-MOVE using callbacks.
odil::MoveSCU::get_move_destination
std::string const & get_move_destination() const
Return the AE title of the destination, defaults to "".
odil::SCU::SCU
SCU(Association &association)
Create a default Service Class User.
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
MoveSCU.h
Generated by
1.17.0