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 
27 class ODIL_API CStoreRequest: public Request
28 {
29 public:
34  CStoreRequest(
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
odil::registry::MoveOriginatorApplicationEntityTitle
const Tag MoveOriginatorApplicationEntityTitle(0x0000, 0x1030)
ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
#define ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(name, tag)
Definition: Message.h:79
odil
Definition: Association.h:23
ODIL_API
#define ODIL_API
Definition: odil.h:27
odil::Value::String
std::string String
String type.
Definition: Value.h:52
odil::registry::Priority
const Tag Priority(0x0000, 0x0700)
odil.h
Request.h
ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO
#define ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(name, tag)
Definition: Message.h:76
odil::registry::MoveOriginatorMessageID
const Tag MoveOriginatorMessageID(0x0000, 0x1031)
registry.h
odil::message::CStoreRequest
C-STORE-RQ message.
Definition: CStoreRequest.h:36
odil::Value::Integer
int64_t Integer
Integer type.
Definition: Value.h:46
odil::registry::AffectedSOPClassUID
const Tag AffectedSOPClassUID(0x0000, 0x0002)
ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO
#define ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(name, tag)
Definition: Message.h:70
DataSet.h
Value.h
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
#define ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(name, tag)
Definition: Message.h:73
odil::registry::AffectedSOPInstanceUID
const Tag AffectedSOPInstanceUID(0x0000, 0x1000)