Odil
A C++11 library for the DICOM standard
StoreSCU.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 _1b2f876e_1ad2_464d_9423_28181320aed0
10#define _1b2f876e_1ad2_464d_9423_28181320aed0
11
12#include "odil/Association.h"
13#include "odil/DataSet.h"
15#include "odil/odil.h"
16#include "odil/SCU.h"
17
18namespace odil
19{
20
22class ODIL_API StoreSCU: public SCU
23{
24public:
26 StoreSCU(Association & association);
27
29 void set_affected_sop_class(std::shared_ptr<DataSet const> dataset);
30
32
34 void store(
35 std::shared_ptr<DataSet> dataset,
36 Value::String const & move_originator_ae_title = "",
37 Value::Integer move_originator_message_id = -1) const;
38private:
39 void _store(std::shared_ptr<message::CStoreRequest const> request) const;
40};
41
42}
43
44#endif // _1b2f876e_1ad2_464d_9423_28181320aed0
Association.
Definition: Association.h:31
Base class for all Service Class Users.
Definition: SCU.h:22
void set_affected_sop_class(std::string const &sop_class)
Set the affected SOP class.
SCU for C-Store services.
Definition: StoreSCU.h:23
void set_affected_sop_class(std::shared_ptr< DataSet const > dataset)
Set the affected SOP class based on the dataset.
void store(std::shared_ptr< DataSet > dataset, Value::String const &move_originator_ae_title="", Value::Integer move_originator_message_id=-1) const
Perform the C-STORE.
StoreSCU(Association &association)
Constructor.
int64_t Integer
Integer type.
Definition: Value.h:42
std::string String
String type.
Definition: Value.h:48
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28