dcmtkpp
GetSCU.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 _f82a15e2_fd13_44b5_af7d_c6983494c9c6
10 #define _f82a15e2_fd13_44b5_af7d_c6983494c9c6
11 
12 #include "SCU.h"
13 
14 #include <vector>
15 
16 #include "dcmtkpp/CGetResponse.h"
17 #include "dcmtkpp/CStoreRequest.h"
18 #include "dcmtkpp/DataSet.h"
19 #include "dcmtkpp/StoreSCP.h"
20 
21 namespace dcmtkpp
22 {
23 
25 class GetSCU: public SCU
26 {
27 public:
30 
32  virtual ~GetSCU();
33 
35  void get(DataSet const & query, Callback callback) const;
36 
40  std::vector<DataSet> get(DataSet const & query) const;
41 
42 private:
43  bool _get_response(CGetResponse const & response) const;
44  void _store_request(CStoreRequest const & request, Callback callback) const;
45 };
46 
47 }
48 
49 #endif // _f82a15e2_fd13_44b5_af7d_c6983494c9c6
Definition: Association.cpp:22
virtual ~GetSCU()
Destructor.
Definition: GetSCU.cpp:28
StoreSCP::Callback Callback
Callback called when a response is received.
Definition: GetSCU.h:29
std::function< void(DataSet const &)> Callback
Callback called when a response is received.
Definition: StoreSCP.h:25
DICOM Data set.
Definition: DataSet.h:66
C-STORE-RQ message.
Definition: CStoreRequest.h:23
SCU for C-GET services.
Definition: GetSCU.h:25
Base class for all Service Class Users.
Definition: SCU.h:20
C-GET-RSP message.
Definition: CGetResponse.h:21