dcmtkpp
CStoreRequest.h
1 /*************************************************************************
2  * dcmtkpp - 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 <dcmtk/config/osconfig.h>
15 #include <dcmtk/ofstd/oftypes.h>
16 
17 #include "dcmtkpp/DataSet.h"
18 #include "dcmtkpp/registry.h"
19 #include "dcmtkpp/Request.h"
20 #include "dcmtkpp/Value.h"
21 
22 namespace dcmtkpp
23 {
24 
26 class CStoreRequest: public Request
27 {
28 public:
34  Value::Integer message_id, Value::String const & affected_sop_class_uid,
35  Value::String const & affected_sop_instance_uid,
36  Value::Integer priority, DataSet const & dataset);
37 
43  CStoreRequest(Message const & message);
44 
46  virtual ~CStoreRequest();
47 
48  DCMTKPP_MESSAGE_MANDATORY_FIELD_STRING_MACRO(
49  affected_sop_class_uid, registry::AffectedSOPClassUID)
50  DCMTKPP_MESSAGE_MANDATORY_FIELD_STRING_MACRO(
51  affected_sop_instance_uid, registry::AffectedSOPInstanceUID)
52  DCMTKPP_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(priority, registry::Priority)
53  DCMTKPP_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(
54  move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle)
55  DCMTKPP_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(
56  move_originator_message_id, registry::MoveOriginatorMessageID)
57 };
58 
59 }
60 
61 #endif // _b85a19af_b74d_4c96_89a0_f30a41b790b3
Definition: Association.cpp:22
Base class for all DIMSE request messages.
Definition: Request.h:20
DICOM Data set.
Definition: DataSet.h:66
Base class for all DIMSE messages.
Definition: Message.h:72
C-STORE-RQ message.
Definition: CStoreRequest.h:26
virtual ~CStoreRequest()
Destructor.
Definition: CStoreRequest.cpp:70
CStoreRequest(Value::Integer message_id, Value::String const &affected_sop_class_uid, Value::String const &affected_sop_instance_uid, Value::Integer priority, DataSet const &dataset)
Create an store request with given Message ID, affected SOP class UID, priority, and data set...
Definition: CStoreRequest.cpp:21