Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
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"
18#include "odil/Value.h"
19
20namespace odil
21{
22
23namespace message
24{
25
28{
29public:
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)
52 ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(priority, registry::Priority)
53
55 move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle)
57 move_originator_message_id, registry::MoveOriginatorMessageID)
58
59private:
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
DICOM Data set.
Definition DataSet.h:30
A value held in a DICOM element.
Definition Value.h:29
int64_t Integer
Integer type.
Definition Value.h:42
std::string String
String type.
Definition Value.h:48
C-STORE-RQ message.
Definition CStoreRequest.h:28
CStoreRequest(std::shared_ptr< Message > message)
Create a C-STORE-RQ from a generic Message.
CStoreRequest(Value::Integer message_id, Value::String const &affected_sop_class_uid, Value::String const &affected_sop_instance_uid, Value::Integer priority, std::shared_ptr< DataSet > dataset, Value::String const &move_originator_ae_title="", Value::Integer move_originator_message_id=-1)
Create an store request with given Message ID, affected SOP class UID, priority, and data set.
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(affected_sop_class_uid, registry::AffectedSOPClassUID) ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(affected_sop_instance_uid
Base class for all DIMSE messages.
Definition Message.h:77
Base class for all DIMSE request messages.
Definition Request.h:25
#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
#define ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(name, tag)
Definition Message.h:70
#define ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(name, tag)
Definition Message.h:61
Definition Association.h:25
#define ODIL_API
Definition odil.h:28