Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
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
"
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
48
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
(
49
affected_sop_class_uid,
registry::AffectedSOPClassUID
)
50
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
(
51
affected_sop_instance_uid,
registry::AffectedSOPInstanceUID
)
52
ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO
(priority,
registry::Priority
)
53
54
ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
(
55
move_originator_ae_title,
registry
::MoveOriginatorApplicationEntityTitle)
56
ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO
(
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
DataSet.h
Request.h
Value.h
odil::DataSet
DICOM Data set.
Definition
DataSet.h:30
odil::Value
A value held in a DICOM element.
Definition
Value.h:29
odil::Value::Integer
int64_t Integer
Integer type.
Definition
Value.h:42
odil::Value::String
std::string String
String type.
Definition
Value.h:48
odil::message::CStoreRequest::CStoreRequest
CStoreRequest(std::shared_ptr< Message > message)
Create a C-STORE-RQ from a generic Message.
odil::message::CStoreRequest::ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
registry::AffectedSOPInstanceUID ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle) ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(move_originator_message_id
odil::message::CStoreRequest::CStoreRequest
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::CStoreRequest::ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(affected_sop_class_uid, registry::AffectedSOPClassUID) ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(affected_sop_instance_uid
odil::message::Message
Base class for all DIMSE messages.
Definition
Message.h:77
odil::message::Request::Request
Request(Value::Integer message_id)
Create a request with given Message ID.
ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO
#define ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(name, tag)
Definition
Message.h:67
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
#define ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(name, tag)
Definition
Message.h:64
ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO
#define ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(name, tag)
Definition
Message.h:61
odil::message
Definition
Cancellation.h:21
odil::registry
Definition
registry.h:97
odil::registry::AffectedSOPInstanceUID
Tag const AffectedSOPInstanceUID(0x0000, 0x1000)
odil::registry::AffectedSOPClassUID
Tag const AffectedSOPClassUID(0x0000, 0x0002)
odil::registry::Priority
Tag const Priority(0x0000, 0x0700)
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
registry.h
src
odil
message
CStoreRequest.h
Generated by
1.17.0