Odil
A C++11 library for the DICOM standard
CFindResponse.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 _5fd36547_9498_4cf3_87cc_737af51e93a9
10 #define _5fd36547_9498_4cf3_87cc_737af51e93a9
11 
12 #include "odil/DataSet.h"
13 #include "odil/odil.h"
14 #include "odil/registry.h"
15 #include "odil/message/Response.h"
16 #include "odil/Value.h"
17 
18 namespace odil
19 {
20 
21 namespace message
22 {
23 
26 {
27 public:
29  enum Status
30  {
31  // Failure
32  RefusedOutOfResources=0xA700,
33  IdentifierDoesNotMatchSOPClass=0xA900,
34  UnableToProcess=0xC000,
35  // Pending
36  PendingWarningOptionalKeysNotSupported=0xFF01,
37  };
38 
43  Value::Integer message_id_being_responded_to, Value::Integer status);
44 
50  Value::Integer message_id_being_responded_to, Value::Integer status,
51  DataSet const & dataset);
52 
58  Value::Integer message_id_being_responded_to, Value::Integer status,
59  DataSet && dataset);
60 
66  CFindResponse(Message const & message);
67 
73  CFindResponse(Message && message);
74 
76  virtual ~CFindResponse();
77 
80  affected_sop_class_uid, registry::AffectedSOPClassUID)
81 
82 private:
83  void _parse(Message const & message);
84 };
85 
86 }
87 
88 }
89 
90 #endif // _5fd36547_9498_4cf3_87cc_737af51e93a9
C-FIND-RSP message.
Definition: CFindResponse.h:25
Tag const AffectedSOPClassUID(0x0000, 0x0002)
DICOM Data set.
Definition: DataSet.h:29
int64_t Integer
Integer type.
Definition: Value.h:42
Base class for all DIMSE messages.
Definition: Message.h:76
Tag const MessageID(0x0000, 0x0110)
#define ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(name, tag)
Definition: Message.h:67
Definition: Association.h:24
Status
C-FIND status codes, PS 3.4, C.4.1.1.4.
Definition: CFindResponse.h:29
#define ODIL_API
Definition: odil.h:28
#define ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(name, tag)
Definition: Message.h:70
Base class for all DIMSE response messages.
Definition: Response.h:24