dcmtkpp
MoveSCU.h
1 /*************************************************************************
2  * dcmtkpp - 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 <string>
13 #include <vector>
14 
15 #include "dcmtkpp/DataSet.h"
16 #include "dcmtkpp/SCU.h"
17 #include "dcmtkpp/StoreSCP.h"
18 
19 namespace dcmtkpp
20 {
21 
23 class MoveSCU: public SCU
24 {
25 public:
28 
30  MoveSCU();
31 
33  virtual ~MoveSCU();
34 
36  std::string const & get_move_destination() const;
38  void set_move_destination(std::string const & move_destination);
39 
41  void move(DataSet const & query, Callback callback) const;
42 
46  std::vector<DataSet> move(DataSet const & query) const;
47 
48 private:
49  std::string _move_destination;
50 
51  bool _dispatch(Association & association, Callback callback) const;
52 
53  bool _handle_main_association() const;
54  bool _handle_store_association(Association & association, Callback callback) const;
55 };
56 
57 }
58 
59 #endif // _5ff4d940_4db7_4d85_9d3a_230b944b31fe
60 
Definition: Association.cpp:22
MoveSCU()
Constructor.
Definition: MoveSCU.cpp:27
void move(DataSet const &query, Callback callback) const
Perform the C-MOVE using a callback.
Definition: MoveSCU.cpp:55
StoreSCP::Callback Callback
Callback called when a response is received.
Definition: MoveSCU.h:27
SCU for C-MOVE services.
Definition: MoveSCU.h:23
virtual ~MoveSCU()
Destructor.
Definition: MoveSCU.cpp:34
std::function< void(DataSet const &)> Callback
Callback called when a response is received.
Definition: StoreSCP.h:25
DICOM Data set.
Definition: DataSet.h:66
void set_move_destination(std::string const &move_destination)
Set the AE title of the destination.
Definition: MoveSCU.cpp:48
std::string const & get_move_destination() const
Return the AE title of the destination, defaults to "".
Definition: MoveSCU.cpp:41
Wrapper around the T_ASC_Association class.
Definition: Association.h:39
Base class for all Service Class Users.
Definition: SCU.h:20