odil
SCU.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 _ba1518e7_8123_46c9_81c0_65439717e40e
10 #define _ba1518e7_8123_46c9_81c0_65439717e40e
11 
12 #include <string>
13 
14 #include "odil/Association.h"
15 
16 namespace odil
17 {
18 
20 class SCU
21 {
22 public:
24  SCU(Association & association);
25 
27  virtual ~SCU();
28 
30  std::string const & get_affected_sop_class() const;
32  void set_affected_sop_class(std::string const & sop_class);
33 
35  void echo() const;
36 
37 protected:
38  Association & _association;
40  std::string _affected_sop_class;
41 };
42 
43 }
44 
45 #endif // _ba1518e7_8123_46c9_81c0_65439717e40e
void set_affected_sop_class(std::string const &sop_class)
Set the affected SOP class.
Definition: SCU.cpp:45
virtual ~SCU()
Destructor.
Definition: SCU.cpp:31
Base class for all Service Class Users.
Definition: SCU.h:20
std::string _affected_sop_class
Affected SOP class.
Definition: SCU.h:40
void echo() const
Perform DICOM ping.
Definition: SCU.cpp:52
Definition: Association.cpp:39
SCU(Association &association)
Create a default Service Class User.
Definition: SCU.cpp:24
Association.
Definition: Association.h:29
std::string const & get_affected_sop_class() const
Return the affected SOP class. Defaults to "".
Definition: SCU.cpp:38