fw4spl
SPacsConfigurationInitializer.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __IOPACS_SPACSCONFIGURATIONINITIALIZER_HPP__
8 #define __IOPACS_SPACSCONFIGURATIONINITIALIZER_HPP__
9 
10 #include "ioPacs/config.hpp"
11 
12 #include <fwPacsIO/data/PacsConfiguration.hpp>
13 
14 #include <fwServices/IController.hpp>
15 
16 #include <boost/filesystem/path.hpp>
17 
18 namespace ioPacs
19 {
20 
46 {
47 public:
48 
50 
54  IOPACS_API SPacsConfigurationInitializer() noexcept;
55 
59  IOPACS_API virtual ~SPacsConfigurationInitializer() noexcept;
60 
61 protected:
62 
64  IOPACS_API virtual void configuring() override;
65 
67  IOPACS_API virtual void starting() override;
68 
70  IOPACS_API virtual void stopping() override;
71 
73  IOPACS_API void updating() override;
74 
76  IOPACS_API void info(std::ostream& _sstream ) override;
77 
78 protected:
80  std::string m_localApplicationTitle;
81 
83  std::string m_pacsHostName;
84 
86  std::string m_pacsApplicationTitle;
87 
89  unsigned short m_pacsApplicationPort;
90 
92  std::string m_moveApplicationTitle;
93 
95  unsigned short m_moveApplicationPort;
96 
98  ::fwPacsIO::data::PacsConfiguration::RETRIEVE_METHOD m_retrieveMethod;
99 
101  std::string m_preferenceKey;
102 
103 };
104 
105 } // namespace ioPacs
106 
107 #endif // __IOPACS_SPACSCONFIGURATIONINITIALIZER_HPP__
ioPacs contains services use to deal with PACS using DCMTK library.
fwPacsIO contains classes used to communicate with a PACS.
STL namespace.
This service is used to initialize a Pacs Configuration data.
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.