Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
CGetRequest.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 _6a22f126_7cc6_47ab_81c2_5f66b2714345
10
#define _6a22f126_7cc6_47ab_81c2_5f66b2714345
11
12
#include "
odil/DataSet.h
"
13
#include "
odil/odil.h
"
14
#include "
odil/registry.h
"
15
#include "
odil/message/Request.h
"
16
#include "
odil/Value.h
"
17
18
namespace
odil
19
{
20
21
namespace
message
22
{
23
25
class
ODIL_API
CGetRequest
:
public
Request
26
{
27
public
:
32
CGetRequest
(
33
Value::Integer
message_id,
Value::String
const
& affected_sop_class_uid,
34
Value::Integer
priority, std::shared_ptr<DataSet> dataset);
35
41
CGetRequest
(std::shared_ptr<Message>
message
);
42
43
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO
(
44
affected_sop_class_uid,
registry::AffectedSOPClassUID
)
45
ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO
(priority,
registry::Priority
)
46
47
private
:
48
void
_create(
49
Value::String
const
& affected_sop_class_uid,
Value::Integer
priority,
50
std::shared_ptr<DataSet const> dataset);
51
void
_parse
(std::shared_ptr<Message const>
message
);
52
};
53
54
}
55
56
}
57
58
#endif
// _6a22f126_7cc6_47ab_81c2_5f66b2714345
DataSet.h
Request.h
Value.h
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::CGetRequest::_parse
ODIL_MESSAGE_MANDATORY_FIELD_STRING_MACRO(affected_sop_class_uid, registry::AffectedSOPClassUID) private void _parse(std::shared_ptr< Message const > message)
odil::message::CGetRequest::CGetRequest
CGetRequest(std::shared_ptr< Message > message)
Create a C-GET-RQ from a generic Message.
odil::message::CGetRequest::CGetRequest
CGetRequest(Value::Integer message_id, Value::String const &affected_sop_class_uid, Value::Integer priority, std::shared_ptr< DataSet > dataset)
Create an get request with given Message ID, affected SOP class UID, priority, and data set.
odil::message::Request::Request
Request(Value::Integer message_id)
Create a request with given Message ID.
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::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
CGetRequest.h
Generated by
1.17.0