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, std::shared_ptr<DataSet> dataset,
38  Value::String const & move_originator_ae_title = "",
39  Value::Integer move_originator_message_id = -1);
40 
46  CStoreRequest(std::shared_ptr<Message> message);
47 
49  affected_sop_class_uid, registry::AffectedSOPClassUID)
51  affected_sop_instance_uid, registry::AffectedSOPInstanceUID)
53 
55  move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle)
57  move_originator_message_id, registry::MoveOriginatorMessageID)
58 
59 private:
60  void _create(
61  Value::String const & affected_sop_class_uid,
62  Value::String const & affected_sop_instance_uid,
63  Value::Integer priority, std::shared_ptr<DataSet const> dataset,
64  Value::String const & move_originator_ae_title,
65  Value::Integer move_originator_message_id);
66  void _parse(std::shared_ptr<Message const> message);
67 };
68 
69 }
70 
71 }
72 
73 #endif // _b85a19af_b74d_4c96_89a0_f30a41b790b3
Tag const AffectedSOPClassUID(0x0000, 0x0002)
#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
#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)