odil
C++11libraryfortheDICOMstandard
MoveSCP.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 _7e899e10_2a21_45b8_a2d6_af1d13cbfd29
10 #define _7e899e10_2a21_45b8_a2d6_af1d13cbfd29
11 
12 #include <cstdint>
13 #include <memory>
14 #include <string>
15 #include <utility>
16 
17 #include "odil/Association.h"
18 #include "odil/odil.h"
19 #include "odil/SCP.h"
20 #include "odil/message/CMoveRequest.h"
21 #include "odil/message/Message.h"
22 
23 namespace odil
24 {
25 
27 class ODIL_API MoveSCP: public SCP
28 {
29 public:
30 
33  {
34  public:
36  virtual unsigned int count() const =0;
37 
44  virtual Association get_association(message::CMoveRequest const &) const =0;
45  };
46 
48  MoveSCP(Association & association);
49 
51  MoveSCP(
52  Association & association,
53  std::shared_ptr<DataSetGenerator> const & generator);
54 
56  virtual ~MoveSCP();
57 
59  DataSetGenerator const & get_generator() const;
60 
62  void set_generator(std::shared_ptr<DataSetGenerator> const & generator);
63 
65  virtual void operator()(message::Message const & message);
66 
68  virtual void operator()(message::Message && message);
69 
70 private:
71  std::shared_ptr<DataSetGenerator> _generator;
72  void operator()(message::CMoveRequest const & request);
73 };
74 
75 }
76 
77 
78 #endif // _7e899e10_2a21_45b8_a2d6_af1d13cbfd29
Generator of C-MOVE responses.
Definition: MoveSCP.h:32
SCP for C-Move services.
Definition: MoveSCP.h:27
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
Association.
Definition: Association.h:30