dcmtkpp
StoreSCP.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 _fdbf3f51_91f5_464a_b449_c3f994297210
10 #define _fdbf3f51_91f5_464a_b449_c3f994297210
11 
12 #include <functional>
13 
14 #include "dcmtkpp/DataSet.h"
15 #include "dcmtkpp/CStoreRequest.h"
16 #include "dcmtkpp/SCP.h"
17 
18 namespace dcmtkpp
19 {
20 
21 class StoreSCP: public SCP
22 {
23 public:
25  typedef std::function<void(DataSet const &)> Callback;
26 
31  bool store(Callback callback) const;
32 
38  void store(CStoreRequest const & request, Callback callback) const;
39 };
40 
41 }
42 
43 #endif // _fdbf3f51_91f5_464a_b449_c3f994297210
Definition: Association.cpp:22
bool store(Callback callback) const
Receive a store request and respond to it.
Definition: StoreSCP.cpp:23
std::function< void(DataSet const &)> Callback
Callback called when a response is received.
Definition: StoreSCP.h:25
C-STORE-RQ message.
Definition: CStoreRequest.h:23
Base class for all Service Class Providers.
Definition: SCP.h:19
Definition: StoreSCP.h:21