Odil
A C++11 library for the DICOM standard
FindSCP.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 _d54d5d3d_791c_43e5_b13a_397954053963
10 #define _d54d5d3d_791c_43e5_b13a_397954053963
11 
12 #include <memory>
13 
14 #include "odil/Association.h"
15 #include "odil/odil.h"
16 #include "odil/SCP.h"
18 #include "odil/message/Message.h"
19 
20 namespace odil
21 {
22 
24 class ODIL_API FindSCP: public SCP
25 {
26 public:
27 
29  FindSCP(Association & association);
30 
33  Association & association,
34  std::shared_ptr<DataSetGenerator> const & generator);
35 
37  std::shared_ptr<DataSetGenerator const> get_generator() const;
38 
40  void set_generator(std::shared_ptr<DataSetGenerator> const & generator);
41 
43  virtual void operator()(std::shared_ptr<message::Message> message);
44 
45 private:
46  std::shared_ptr<DataSetGenerator> _generator;
47 
48  void operator()(std::shared_ptr<message::CFindRequest const> request);
49 };
50 
51 }
52 
53 #endif // _d54d5d3d_791c_43e5_b13a_397954053963
Association.
Definition: Association.h:31
SCP for C-Find services.
Definition: FindSCP.h:25
FindSCP(Association &association)
Constructor.
FindSCP(Association &association, std::shared_ptr< DataSetGenerator > const &generator)
Constructor.
virtual void operator()(std::shared_ptr< message::Message > message)
Process a C-Find request.
void set_generator(std::shared_ptr< DataSetGenerator > const &generator)
Set the generator.
std::shared_ptr< DataSetGenerator const > get_generator() const
Return the generator.
Base class for all Service Class Providers.
Definition: SCP.h:25
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28