IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LibraryUserConfiguration.h
1 // LibraryUserConfiguration.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKCORE_LIBRARYUSERCONFIGURATION_H__
16 #define __IPSDKCORE_LIBRARYUSERCONFIGURATION_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::core::LibraryUserConfiguration::_logMainFileName' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
24 #include <IPSDKSerialization/Engine/BaseSerializationObject.h>
25 #include <IPSDKUtil/BaseTypes.h>
26 
27 namespace ipsdk {
28 namespace core {
29 
32 
34 {
35  // declare serial class
37 
38 public:
44 
45 // methods
46 public:
48  bool isInit() const;
49 
51  void init();
52 
56  const boost::filesystem::path& getProjectRootDirectory() const;
57  void setProjectRootDirectory(const boost::filesystem::path& projectRootDirectory);
59 
63  const boost::filesystem::path& getLogMainDirPath() const;
64  void setLogMainDirPath(const boost::filesystem::path& logMainDirPath);
66 
70  const std::string& getLogMainFileName() const;
71  void setLogMainFileName(const std::string& logMainFileName);
73 
78  bool isLogDailyRollingFileAppenderUsed() const;
79  void setUseLogDailyRollingFileAppender(const bool bUseLogDailyRollingFileAppender);
81 
85  const boost::filesystem::path& getUserConfigurationDirPath() const;
86  void setUserConfigurationDirPath(const boost::filesystem::path& userConfigurationDirPath);
88 
92  const boost::filesystem::path& getCommonConfigurationDirPath() const;
93  void setCommonConfigurationDirPath(const boost::filesystem::path& commonConfigurationDirPath);
95 
99  const boost::filesystem::path& getTemporaryDirPath() const;
100  void setTemporaryDirPath(const boost::filesystem::path& temporaryDirPath);
102 
107  const boost::filesystem::path& getLocalProcessingPolicyFilePath() const;
108  void setLocalProcessingPolicyFilePath(const boost::filesystem::path& localProcessingPolicyFilePath);
110 
115  const boost::filesystem::path& getDistributedProcessingPolicyFilePath() const;
116  void setDistributedProcessingPolicyFilePath(const boost::filesystem::path& distributedProcessingPolicyFilePath);
118 
124  const boost::filesystem::path& getNetworkDescriptionFilePath() const;
125  void setNetworkDescriptionFilePath(const boost::filesystem::path& networkDescriptionFilePath);
127 
132  const boost::filesystem::path& getLicenseFilePath() const;
133  void setLicenseFilePath(const boost::filesystem::path& licenseFilePath);
135 
139  const boost::filesystem::path& getProductLogoFilePath() const;
140  void setProductLogoFilePath(const boost::filesystem::path& productLogoFilePath);
142 
146  const boost::filesystem::path& getCompanyLogoFilePath() const;
147  void setCompanyLogoFilePath(const boost::filesystem::path& companyLogoFilePath);
149 
153  bool isNetworkCapabilitiesInhibited() const;
154  void setNetworkCapabilitiesInhibited(const bool bNetworkCapabilitiesInhibited);
156 
157 // attributes
158 protected:
160  boost::filesystem::path _projectRootDirectory;
161 
163  boost::filesystem::path _logMainDirPath;
164 
166  std::string _logMainFileName;
167 
171 
173  boost::filesystem::path _userConfigurationDirPath;
174 
176  boost::filesystem::path _commonConfigurationDirPath;
177 
179  boost::filesystem::path _temporaryDirPath;
180 
183  boost::filesystem::path _localProcessingPolicyFilePath;
184 
187  boost::filesystem::path _distributedProcessingPolicyFilePath;
188 
192  boost::filesystem::path _networkDescriptionFilePath;
193 
195  boost::filesystem::path _licenseFilePath;
196 
198  boost::filesystem::path _productLogoFilePath;
199 
201  boost::filesystem::path _companyLogoFilePath;
202 
206 
207  // object initialization flag
208  bool _bInit;
209 };
210 
213 
214 inline bool
216 {
217  return _bInit;
218 }
219 
222 
223 } // end of namespace core
224 } // end of namespace ipsdk
225 
226 #pragma warning (pop)
227 
228 #endif // __IPSDKCORE_LIBRARYUSERCONFIGURATION_H__
#define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:73
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::filesystem::path _companyLogoFilePath
company logo file path
Definition: LibraryUserConfiguration.h:201
boost::filesystem::path _productLogoFilePath
product logo file path
Definition: LibraryUserConfiguration.h:198
bool isInit() const
retrieve object initialization flag
Definition: LibraryUserConfiguration.h:215
Definition of import/export macro for library.
IPSDKUTIL_API void setProjectRootDirectory(const boost::filesystem::path &projectRootDirectory)
function allowing to select project root directory
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
Base types for multiplatform compatibility.
boost::filesystem::path _projectRootDirectory
project root directory
Definition: LibraryUserConfiguration.h:160
boost::filesystem::path _licenseFilePath
library license file path
Definition: LibraryUserConfiguration.h:195
boost::filesystem::path _commonConfigurationDirPath
library common (all users) configuration directory
Definition: LibraryUserConfiguration.h:176
boost::filesystem::path _localProcessingPolicyFilePath
library local processing policy file path
Definition: LibraryUserConfiguration.h:183
boost::filesystem::path _networkDescriptionFilePath
library network description file path
Definition: LibraryUserConfiguration.h:192
boost::filesystem::path _temporaryDirPath
library temporary directory
Definition: LibraryUserConfiguration.h:179
User configuration for IPSDK library.
Definition: LibraryUserConfiguration.h:33
bool _bNetworkCapabilitiesInhibited
Definition: LibraryUserConfiguration.h:205
boost::filesystem::path _userConfigurationDirPath
library user configuration directory
Definition: LibraryUserConfiguration.h:173
bool _bUseLogDailyRollingFileAppender
Definition: LibraryUserConfiguration.h:170
std::string _logMainFileName
library main log file name (name with extension)
Definition: LibraryUserConfiguration.h:166
boost::filesystem::path _logMainDirPath
library log main directory
Definition: LibraryUserConfiguration.h:163
IPSDKUTIL_API const boost::filesystem::path & getProjectRootDirectory()
function allowing to retrieve project root directory
Base class for serializable class.
Definition: BaseSerializationObject.h:33
boost::filesystem::path _distributedProcessingPolicyFilePath
library distributed processing policy file path
Definition: LibraryUserConfiguration.h:187