fw4spl
PacsConfiguration.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 __FWPACSIO_DATA_PACSCONFIGURATION_HPP__
8 #define __FWPACSIO_DATA_PACSCONFIGURATION_HPP__
9 
10 #include "fwPacsIO/config.hpp"
11 
12 #include <fwData/factory/new.hpp>
13 #include <fwData/Object.hpp>
14 
15 fwCampAutoDeclareDataMacro((fwPacsIO)(data)(PacsConfiguration), FWPACSIO_API);
16 
17 namespace fwPacsIO
18 {
19 namespace data
20 {
24 class FWPACSIO_CLASS_API PacsConfiguration : public ::fwData::Object
25 {
26 
27 public:
28 
30  ::fwData::factory::New< PacsConfiguration >);
31  fwCampMakeFriendDataMacro((fwPacsIO)(data)(PacsConfiguration));
32 
37  FWPACSIO_API PacsConfiguration(::fwData::Object::Key key);
38 
40  FWPACSIO_API virtual ~PacsConfiguration();
41 
43  FWPACSIO_API void shallowCopy( const Object::csptr& _source ) override;
44 
46  FWPACSIO_API void cachedDeepCopy(const Object::csptr& _source, DeepCopyCacheType& cache) override;
47 
51  typedef enum
52  {
53  MOVE_RETRIEVE_METHOD = 1,
54  GET_RETRIEVE_METHOD = 2,
56 
64  const std::string& getLocalApplicationTitle() const
65  {
66  return m_localApplicationTitle;
67  }
68 
69  //------------------------------------------------------------------------------
70 
71  void setLocalApplicationTitle(const std::string& localApplicationTitle)
72  {
73  m_localApplicationTitle = localApplicationTitle;
74  }
75 
81  const std::string& getPacsHostName() const
82  {
83  return m_pacsHostName;
84  }
85 
86  //------------------------------------------------------------------------------
87 
88  void setPacsHostName(const std::string& pacsHostName)
89  {
90  m_pacsHostName = pacsHostName;
91  }
92 
98  const std::string& getPacsApplicationTitle() const
99  {
100  return m_pacsApplicationTitle;
101  }
102 
103  //------------------------------------------------------------------------------
104 
105  void setPacsApplicationTitle(const std::string& pacsApplicationTitle)
106  {
107  m_pacsApplicationTitle = pacsApplicationTitle;
108  }
109 
115  const unsigned short& getPacsApplicationPort() const
116  {
117  return m_pacsApplicationPort;
118  }
119 
120  //------------------------------------------------------------------------------
121 
122  void setPacsApplicationPort(const unsigned short& pacsApplicationPort)
123  {
124  m_pacsApplicationPort = pacsApplicationPort;
125  }
126 
132  const std::string& getMoveApplicationTitle() const
133  {
134  return m_moveApplicationTitle;
135  }
136 
137  //------------------------------------------------------------------------------
138 
139  void setMoveApplicationTitle(const std::string& moveApplicationTitle)
140  {
141  m_moveApplicationTitle = moveApplicationTitle;
142  }
143 
149  unsigned short getMoveApplicationPort() const
150  {
151  return m_moveApplicationPort;
152  }
153 
154  //------------------------------------------------------------------------------
155 
156  void setMoveApplicationPort(unsigned short moveApplicationPort)
157  {
158  m_moveApplicationPort = moveApplicationPort;
159  }
160 
167  {
168  return m_retrieveMethod;
169  }
170 
171  //------------------------------------------------------------------------------
172 
173  void setRetrieveMethod(RETRIEVE_METHOD retrieveMethod)
174  {
175  m_retrieveMethod = retrieveMethod;
176  }
177 
182 protected:
185 
187  std::string m_pacsHostName;
188 
191 
193  unsigned short m_pacsApplicationPort;
194 
197 
199  unsigned short m_moveApplicationPort;
200 
203 
204 };
205 
206 } //namespace data
207 } //namespace fwPacsIO
208 
209 #endif /* __FWPACSIO_DATA_PACSCONFIGURATION_HPP__ */
const unsigned short & getPacsApplicationPort() const
Pacs port.
unsigned short m_pacsApplicationPort
Pacs application port.
std::string m_pacsApplicationTitle
Pacs application title.
void setRetrieveMethod(RETRIEVE_METHOD retrieveMethod)
Request mode.
void setMoveApplicationTitle(const std::string &moveApplicationTitle)
Move application title.
fwPacsIO contains classes used to communicate with a PACS.
unsigned short getMoveApplicationPort() const
Move application port.
const std::string & getMoveApplicationTitle() const
Move application title.
void setLocalApplicationTitle(const std::string &localApplicationTitle)
Local application title.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
std::string m_pacsHostName
Pacs host name.
const std::string & getPacsApplicationTitle() const
Pacs application title.
RETRIEVE_METHOD m_retrieveMethod
Retrieve method.
This class defines a Pacs configuration.
void setMoveApplicationPort(unsigned short moveApplicationPort)
Move application port.
std::string m_localApplicationTitle
Local application title.
RETRIEVE_METHOD getRetrieveMethod() const
Request mode.
void setPacsApplicationTitle(const std::string &pacsApplicationTitle)
Pacs application title.
const std::string & getPacsHostName() const
Pacs host name.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
std::string m_moveApplicationTitle
Move application title.
unsigned short m_moveApplicationPort
Move application port.
Base class for each data object.
void setPacsApplicationPort(const unsigned short &pacsApplicationPort)
Pacs port.
const std::string & getLocalApplicationTitle() const
Local application title.
void setPacsHostName(const std::string &pacsHostName)
Pacs host name.