IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
SystemApi.h
Go to the documentation of this file.
1 // SystemApi.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKUTIL_SYSTEMAPI_H__
16 #define __IPSDKUTIL_SYSTEMAPI_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
21 
22 namespace ipsdk {
23 
26 
29 IPSDKUTIL_API std::string
30 getHostName();
31 
34 IPSDKUTIL_API std::string
35 getPlatformBinaryName(const std::string& baseName);
36 
39 IPSDKUTIL_API std::string
40 getPlatformLibraryName(const std::string& baseName);
41 
44 IPSDKUTIL_API std::string
45 getPlatformExecName(const std::string& baseName);
46 
49 IPSDKUTIL_API std::string
51 
55 loadLibrary(const boost::filesystem::path& filePath);
56 
60 addLibraryDirectory(const boost::filesystem::path& dirPath);
61 
64 IPSDKUTIL_API std::string
66 
69 IPSDKUTIL_API bool
71 
74 IPSDKUTIL_API bool
76 
79 IPSDKUTIL_API std::string
81 
85 IPSDKUTIL_API std::string
86 getOSName();
87 
91 displayHtml(const boost::filesystem::path& filePath);
92 
96 getApplicationPath(boost::filesystem::path& appPath);
97 
101 getApplicationDir(boost::filesystem::path& appDir);
102 
106 getApplicationName(std::string& appName);
107 
111 getUserRootDataDir(boost::filesystem::path& dataPath);
112 
116 getCommonRootDataDir(boost::filesystem::path& dataPath);
117 
121 getUserLibraryDataDir(boost::filesystem::path& dataPath);
122 
126 getCommonLibraryDataDir(boost::filesystem::path& dataPath);
127 
129 IPSDKUTIL_API std::string
130 #ifdef IPSDK_WINDOWS
131 getLastError(ipUInt32 errorCode);
132 #else
133 getLastError(ipInt32 errorCode);
134 #endif
135 
137 IPSDKUTIL_API std::string
138 getLastError();
139 
144 IPSDKUTIL_API void
145 setThreadName(const std::string& threadName);
146 
155 createProcess(const boost::filesystem::path& execPath,
156  const std::string& cmdArgs,
157  const ipUInt32 timeout,
158  ipInt32& exitCode);
159 
168 createProcess(const boost::filesystem::path& execPath,
169  const std::string& cmdArgs,
170  std::string& stdOutStr);
171 
174 
175 } // end of namespace ipsdk
176 
177 #endif // __IPSDKUTIL_SYSTEMAPI_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKUTIL_API std::string getPlatformLibraryName(const std::string &baseName)
retrieve full ipsdk (platform dependent) library name from its base name
IPSDKUTIL_API std::string getPlatformBinaryDirPostFix()
retrieve platform dependent binary directory post fix. Example : msvc11_x64, linux_x64, ...
IPSDKUTIL_API bool isDebugConfig()
retrieve debug flag
IPSDKUTIL_API BoolResult getUserRootDataDir(boost::filesystem::path &dataPath)
retrieve root user data directory
int32_t ipInt32
Base types definition.
Definition: BaseTypes.h:52
IPSDKUTIL_API std::string getPlatformExecName(const std::string &baseName)
retrieve full ipsdk (platform dependent) executable name from its base name
IPSDKUTIL_API std::string getLastError(ipInt32 errorCode)
function allowing to retrieve error string from value
IPSDKUTIL_API BoolResult getApplicationDir(boost::filesystem::path &appDir)
retrieve application directory
IPSDKUTIL_API std::string getHostName()
retrieve local host name
IPSDKUTIL_API BoolResult loadLibrary(const boost::filesystem::path &filePath)
load library given its path
IPSDKUTIL_API std::string getPlatformBinaryName(const std::string &baseName)
retrieve full ipsdk (platform dependent) binary name from its base name
Base types for multiplatform compatibility.
IPSDKUTIL_API std::string getOSName()
retrieve full operating system name
IPSDKUTIL_API BoolResult getApplicationName(std::string &appName)
retrieve application name
IPSDKUTIL_API BoolResult displayHtml(const boost::filesystem::path &filePath)
display html file through default browser
IPSDKUTIL_API BoolResult addLibraryDirectory(const boost::filesystem::path &dirPath)
add a library directory for library delay load search
#define IPSDKUTIL_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKUtilExports.h:27
IPSDKUTIL_API BoolResult getCommonRootDataDir(boost::filesystem::path &dataPath)
retrieve root common (all users) data directory
Definition of import/export macro for library.
IPSDKUTIL_API BoolResult createProcess(const boost::filesystem::path &execPath, const std::string &cmdArgs, const ipUInt32 timeout, ipInt32 &exitCode)
IPSDKUTIL_API BoolResult getUserLibraryDataDir(boost::filesystem::path &dataPath)
retrieve library user data directory
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
Predefined types for processing results management.
IPSDKUTIL_API bool is64BitsConfig()
retrieve x64 flag
IPSDKUTIL_API BoolResult getApplicationPath(boost::filesystem::path &appPath)
retrieve application path
IPSDKUTIL_API std::string getFullPlatformName()
retrieve full platform name
IPSDKUTIL_API void setThreadName(const std::string &threadName)
function allowing to set current thread name for debugging purpose
IPSDKUTIL_API std::string getPlatformName()
retrieve platform name
IPSDKUTIL_API BoolResult getCommonLibraryDataDir(boost::filesystem::path &dataPath)
retrieve library common data directory
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53