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 "dcmtkpp/DataSet.h"
15 #include "dcmtkpp/registry.h"
16 #include "dcmtkpp/Request.h"
17 #include "dcmtkpp/Value.h"
18 
19 namespace dcmtkpp
20 {
21 
23 class CStoreRequest: public Request
24 {
25 public:
31  Value::Integer message_id, Value::String const & affected_sop_class_uid,
32  Value::String const & affected_sop_instance_uid,
33  Value::Integer priority, DataSet const & dataset);
34 
40  CStoreRequest(Message const & message);
41 
43  virtual ~CStoreRequest();
44 
45  DCMTKPP_MESSAGE_MANDATORY_FIELD_STRING_MACRO(
46  affected_sop_class_uid, registry::AffectedSOPClassUID)
47  DCMTKPP_MESSAGE_MANDATORY_FIELD_STRING_MACRO(
48  affected_sop_instance_uid, registry::AffectedSOPInstanceUID)
49  DCMTKPP_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO(priority, registry::Priority)
50  DCMTKPP_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(
51  move_originator_ae_title, registry::MoveOriginatorApplicationEntityTitle)
52  DCMTKPP_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(
53  move_originator_message_id, registry::MoveOriginatorMessageID)
54 };
55 
56 }
57 
58 #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:23
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