odil
C++11libraryfortheDICOMstandard
StoreSCU.h
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 _1b2f876e_1ad2_464d_9423_28181320aed0
10 #define _1b2f876e_1ad2_464d_9423_28181320aed0
11 
12 #include "odil/Association.h"
13 #include "odil/DataSet.h"
14 #include "odil/message/CStoreRequest.h"
15 #include "odil/odil.h"
16 #include "odil/SCU.h"
17 
18 namespace odil
19 {
20 
22 class ODIL_API StoreSCU: public SCU
23 {
24 public:
26  StoreSCU(Association & association);
27 
29  virtual ~StoreSCU();
30 
32  void set_affected_sop_class(DataSet const & dataset);
33 
35 
37  void store(
38  DataSet const & dataset,
39  Value::String const & move_originator_ae_title = "",
40  Value::Integer move_originator_message_id = -1) const;
41 
43  void store(
44  DataSet && dataset,
45  Value::String const & move_originator_ae_title = "",
46  Value::Integer move_originator_message_id = -1) const;
47 private:
48  void _store(message::CStoreRequest const & request) const;
49 };
50 
51 }
52 
53 #endif // _1b2f876e_1ad2_464d_9423_28181320aed0
void set_affected_sop_class(std::string const &sop_class)
Set the affected SOP class.
Definition: SCU.cpp:45
Base class for all Service Class Users.
Definition: SCU.h:21
Definition: Association.cpp:39
std::string String
String type.
Definition: Value.h:48
DICOM Data set.
Definition: DataSet.h:29
Association.
Definition: Association.h:30
int64_t Integer
Integer type.
Definition: Value.h:42
SCU for C-Store services.
Definition: StoreSCU.h:22