Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
CStoreResponse.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 _7e193624_081c_47dd_a011_986e96916ea9
10
#define _7e193624_081c_47dd_a011_986e96916ea9
11
12
#include "
odil/odil.h
"
13
#include "
odil/registry.h
"
14
#include "
odil/message/Response.h
"
15
#include "
odil/Value.h
"
16
17
namespace
odil
18
{
19
20
namespace
message
21
{
22
24
class
ODIL_API
CStoreResponse
:
public
Response
25
{
26
public
:
28
enum
Status
29
{
30
// Failure
31
RefusedOutOfResources
=0xA700,
32
ErrorDataSetDoesNotMatchSOPClass
=0xA900,
33
ErrorCannotUnderstand
=0xC000,
34
// Warning
35
CoercionOfDataElements
=0xB000,
36
DataSetDoesNotMatchSOPClass
=0xB007,
37
ElementsDiscarded
=0xB006,
38
};
39
43
CStoreResponse
(
44
Value::Integer
message_id_being_responded_to,
Value::Integer
status);
45
51
CStoreResponse
(std::shared_ptr<Message const>
message
);
52
53
ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO
(message_id,
registry::MessageID
)
54
ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
(
55
affected_sop_class_uid,
registry
::AffectedSOPClassUID)
56
ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
(
57
affected_sop_instance_uid,
registry
::AffectedSOPInstanceUID)
58
};
59
60
}
61
62
}
63
64
#endif
// _7e193624_081c_47dd_a011_986e96916ea9
Response.h
Value.h
odil::Value::Integer
int64_t Integer
Integer type.
Definition
Value.h:42
odil::message::CStoreResponse::ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO
ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(affected_sop_class_uid, registry::AffectedSOPClassUID) ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(affected_sop_instance_uid
odil::message::CStoreResponse::Status
Status
C-STORE status codes, PS 3.4, B.2.3.
Definition
CStoreResponse.h:29
odil::message::CStoreResponse::ErrorDataSetDoesNotMatchSOPClass
@ ErrorDataSetDoesNotMatchSOPClass
Definition
CStoreResponse.h:32
odil::message::CStoreResponse::ErrorCannotUnderstand
@ ErrorCannotUnderstand
Definition
CStoreResponse.h:33
odil::message::CStoreResponse::CoercionOfDataElements
@ CoercionOfDataElements
Definition
CStoreResponse.h:35
odil::message::CStoreResponse::RefusedOutOfResources
@ RefusedOutOfResources
Definition
CStoreResponse.h:31
odil::message::CStoreResponse::DataSetDoesNotMatchSOPClass
@ DataSetDoesNotMatchSOPClass
Definition
CStoreResponse.h:36
odil::message::CStoreResponse::ElementsDiscarded
@ ElementsDiscarded
Definition
CStoreResponse.h:37
odil::message::CStoreResponse::CStoreResponse
CStoreResponse(Value::Integer message_id_being_responded_to, Value::Integer status)
Create an store response with given Message ID, and status.
odil::message::CStoreResponse::CStoreResponse
CStoreResponse(std::shared_ptr< Message const > message)
Create a C-STORE-RSP from a generic Message.
odil::message::Response::Response
Response(Value::Integer message_id_being_responded_to, Value::Integer status)
Create a response with given message id and status;.
ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO
#define ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(name, tag)
Definition
Message.h:67
odil::message
Definition
Cancellation.h:21
odil::registry
Definition
registry.h:97
odil::registry::MessageID
Tag const MessageID(0x0000, 0x0110)
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
registry.h
src
odil
message
CStoreResponse.h
Generated by
1.17.0