Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
MsppManager.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_CORE_MSPP_MANAGER_H__
13 #define __KOME_CORE_MSPP_MANAGER_H__
14 
15 
16 #include <string>
17 
18 
19 namespace kome {
20  namespace core {
21 
22  class IniFile;
23 
28  class CORE_TOOLKITS_CLASS MsppManager {
29  protected:
34  MsppManager();
35 
40  virtual ~MsppManager();
41 
42  protected:
44  std::string m_app;
45 
47  std::string m_reg;
48 
50  std::string m_version;
51 
53  std::string m_msppDir;
54 
56  std::string m_confDir;
57 
59  std::string m_tmpDir;
60 
62  std::string m_pidTmpDir;
63 
66 
69 
71  unsigned long m_pid;
72 
74  std::vector< std::string > m_pluginPaths;
75 
77  std::string m_platform;
78 
79  // >>>>>> @Date:2013/08/08 <Add> A.Ozaki
80  //
83 
84  //
85  // <<<<<< @Date:2013/08/08 <Add> A.Ozaki
86 
87  public:
93  const char* getAppName();
94 
100  const char* getPlatformName();
101 
107  const char* getRegName();
108 
114  const char* getVersion();
115 
121  std::vector< std::string > getPluginDir();
122  protected:
127  void setPath();
128 
133  void deleteTmpFiles();
134 
139  void setPluginDir();
140  public:
146  const char* getMsppDir();
147 
153  const char* getConfDir();
154 
160  const char* getTmpDir();
161 
170  std::string getTmpFileName( const char* prefix, const char* suffix, const char* dir = NULL );
171 
172  public:
178  void setIniFile( IniFile* ini );
179 
185  IniFile* getIniFile();
186 
192  void setParameters( IniFile* params );
193 
199  IniFile* getParameters();
200 
201  public:
207  unsigned int getPid();
208 // >>>>>> @Date:2013/08/08 <Add> A.Ozaki
209 //
210  public:
216  bool isInitializedMATLAB( void );
217 
222  void setInitializedMATLAB( void );
223 
228  void resetInitializedMATLAB( void );
229 
230 //
231 // <<<<<< @Date:2013/08/08 <Add> A.Ozaki
232 
233  public:
239  static MsppManager& getInstance();
240  };
241  }
242 }
243 
244 
245 #endif // __KOME_CORE_MSPP_MANAGER_H__
std::string m_platform
Definition: MsppManager.h:77
Mass++ manager class.
Definition: MsppManager.h:28
#define NULL
Definition: CoreMacros.h:18
unsigned long m_pid
Definition: MsppManager.h:71
ini file management class
Definition: IniFile.h:30
std::string m_pidTmpDir
Definition: MsppManager.h:62
std::vector< std::string > m_pluginPaths
Definition: MsppManager.h:74