odil
C++11libraryfortheDICOMstandard
GetSCP.h
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 _2f0ad1fd_8779_4ab3_b7e8_6d37fdc0c018
10 #define _2f0ad1fd_8779_4ab3_b7e8_6d37fdc0c018
11 
12 #include <memory>
13 
14 #include "odil/Association.h"
15 #include "odil/odil.h"
16 #include "odil/SCP.h"
17 #include "odil/message/CGetRequest.h"
18 #include "odil/message/Message.h"
19 
20 namespace odil
21 {
22 
24 class ODIL_API GetSCP: public SCP
25 {
26 public:
27 
30  {
31  public:
33  virtual unsigned int count() const =0;
34  };
35 
37  GetSCP(Association & association);
38 
40  GetSCP(
41  Association & association,
42  std::shared_ptr<DataSetGenerator> const & generator);
43 
45  virtual ~GetSCP();
46 
48  DataSetGenerator const & get_generator() const;
49 
51  void set_generator(std::shared_ptr<DataSetGenerator> const & generator);
52 
54  virtual void operator()(message::Message const & message);
55 
57  virtual void operator()(message::Message && message);
58 
59 private:
60  std::shared_ptr<DataSetGenerator> _generator;
61  void operator()(message::CGetRequest const & request);
62 };
63 
64 }
65 
66 #endif // _2f0ad1fd_8779_4ab3_b7e8_6d37fdc0c018
SCP for C-Get services.
Definition: GetSCP.h:24
Definition: Association.cpp:39
Base class for all Service Class Providers.
Definition: SCP.h:24
Abstract base class for SCP returning multiple data sets.
Definition: SCP.h:32
Generator of C-GET responses.
Definition: GetSCP.h:29
Association.
Definition: Association.h:30