Odil
A C++11 library for the DICOM standard
CStoreRequest.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 _b85a19af_b74d_4c96_89a0_f30a41b790b3
10 #define _b85a19af_b74d_4c96_89a0_f30a41b790b3
11 
12 #include <string>
13 
14 #include "odil/DataSet.h"
15 #include "odil/odil.h"
16 #include "odil/registry.h"
17 #include "odil/message/Request.h"
18 #include "odil/Value.h"
19 
20 namespace odil
21 {
22 
23 namespace message
24 {
25 
28 {
29 public:
35  Value::Integer message_id, Value::String const & affected_sop_class_uid,
36  Value::String const & affected_sop_instance_uid,
37  Value::Integer priority, DataSet const & dataset,
38  Value::String const & move_originator_ae_title = "",
39  Value::Integer move_originator_message_id = -1);
40 
46  Value::Integer message_id, Value::String const & affected_sop_class_uid,
47  Value::String const & affected_sop_instance_uid,
48  Value::Integer priority, DataSet && dataset,
49  Value::String const & move_originator_ae_title = "",
50  Value::Integer move_originator_message_id = -1);
51 
57  CStoreRequest(Message const & message);
58 
64  CStoreRequest(Message && message);
65 
67  virtual ~CStoreRequest();
68 
70  affected_sop_class_uid, registry::AffectedSOPClassUID)
72  affected_sop_instance_uid, registry::AffectedSOPInstanceUID)
74 
76  move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle)
78  move_originator_message_id, registry::MoveOriginatorMessageID)
79 
80 private:
81  void _create(
82  Value::String const & affected_sop_class_uid,
83  Value::String const & affected_sop_instance_uid,
84  Value::Integer priority, DataSet const & dataset,
85  Value::String const & move_originator_ae_title,
86  Value::Integer move_originator_message_id);
87  void _parse(Message const & message);
88 };
89 
90 }
91 
92 }
93 
94 #endif // _b85a19af_b74d_4c96_89a0_f30a41b790b3
Tag const AffectedSOPClassUID(0x0000, 0x0002)
DICOM Data set.
Definition: DataSet.h:29
#define ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(name, tag)
Definition: Message.h:61
int64_t Integer
Integer type.
Definition: Value.h:42
C-STORE-RQ message.
Definition: CStoreRequest.h:27
Base class for all DIMSE messages.
Definition: Message.h:76
#define ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(name, tag)
Definition: Message.h:67
#define ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(name, tag)
Definition: Message.h:64
Base class for all DIMSE request messages.
Definition: Request.h:24
Definition: Association.h:24
Tag const AffectedSOPInstanceUID(0x0000, 0x1000)
std::string String
String type.
Definition: Value.h:48
Tag const MoveOriginatorMessageID(0x0000, 0x1031)
#define ODIL_API
Definition: odil.h:28
Tag const Priority(0x0000, 0x0700)
#define ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(name, tag)
Definition: Message.h:70
Tag const MoveOriginatorApplicationEntityTitle(0x0000, 0x1030)