dcmtkpp
StoreSCU.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 _1b2f876e_1ad2_464d_9423_28181320aed0
10 #define _1b2f876e_1ad2_464d_9423_28181320aed0
11 
12 #include "SCU.h"
13 
14 #include "dcmtkpp/DataSet.h"
15 
16 namespace dcmtkpp
17 {
18 
20 class StoreSCU: public SCU
21 {
22 public:
24  virtual ~StoreSCU();
25 
27  void set_affected_sop_class(DataSet const & dataset);
28 
30  void store(DataSet const & dataset,
31  ProgressCallback callback=NULL, void * data=NULL) const;
32 };
33 
34 }
35 
36 #endif // _1b2f876e_1ad2_464d_9423_28181320aed0
SCU for C-Store services.
Definition: StoreSCU.h:20
Definition: Association.cpp:22
std::function< void(void *, unsigned long)> ProgressCallback
Progress callback, following the semantics of DCMTK.
Definition: ServiceRole.h:31
DICOM Data set.
Definition: DataSet.h:66
virtual ~StoreSCU()
Destructor.
Definition: StoreSCU.cpp:25
Base class for all Service Class Users.
Definition: SCU.h:20
void store(DataSet const &dataset, ProgressCallback callback=NULL, void *data=NULL) const
Perform the C-STORE using an optional callback.
Definition: StoreSCU.cpp:58
void set_affected_sop_class(DataSet const &dataset)
Set the affected SOP class based on the dataset.
Definition: StoreSCU.cpp:32