IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PythonUtils.h
Go to the documentation of this file.
1 // PythonUtils.h:
3 // --------------
4 //
14 
15 #ifndef __IPSDKUTIL_PYTHONUTILS_H__
16 #define __IPSDKUTIL_PYTHONUTILS_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
20 #include <IPSDKUtil/Tools/ProcessingResult.h>
21 
22 namespace ipsdk {
23 
25 
27 IPSDKUTIL_API std::string
29 
33 IPSDKUTIL_API std::string
34 getPythonRootDirEnvVarName(const ipUInt32 pythonMajorVersion,
35  const ipUInt32 pythonMinorVersion);
36 
40 IPSDKUTIL_API boost::filesystem::path
41 getPythonRootDir(const ipUInt32 pythonMajorVersion,
42  const ipUInt32 pythonMinorVersion);
43 
47 IPSDKUTIL_API boost::filesystem::path
48 getPythonExecPathFromEnvVar(const ipUInt32 pythonMajorVersion,
49  const ipUInt32 pythonMinorVersion);
50 
54 getPythonExecVersion(const boost::filesystem::path& pythonExecPath,
55  ipUInt32& majorVersion,
56  ipUInt32& minorVersion,
57  ipUInt32& microVersion);
58 
61 
62 } // end of namespace ipsdk
63 
64 #endif // __IPSDKUTIL_PYTHONUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKUTIL_API boost::filesystem::path getPythonExecPathFromEnvVar(const ipUInt32 pythonMajorVersion, const ipUInt32 pythonMinorVersion)
function allowing to retrieve python executable path from environment variable associated to a given ...
IPSDKUTIL_API std::string getPythonRootDirEnvVarName(const ipUInt32 pythonMajorVersion, const ipUInt32 pythonMinorVersion)
function allowing to retrieve environment variable name which allows to retrieve root path to python ...
Base types for multiplatform compatibility.
#define IPSDKUTIL_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKUtilExports.h:27
Definition of import/export macro for library.
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
IPSDKUTIL_API BoolResult getPythonExecVersion(const boost::filesystem::path &pythonExecPath, ipUInt32 &majorVersion, ipUInt32 &minorVersion, ipUInt32 &microVersion)
function allowing to retrieve python executable version
IPSDKUTIL_API std::string getPythonExecName()
function allowing to retrieve python executable name
IPSDKUTIL_API boost::filesystem::path getPythonRootDir(const ipUInt32 pythonMajorVersion, const ipUInt32 pythonMinorVersion)
function allowing to retrieve path to python executable for a given version from environment if it ex...
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53