15 #ifndef __IPSDKCORE_LOCALPROCESSINGPOLICY_H__ 16 #define __IPSDKCORE_LOCALPROCESSINGPOLICY_H__ 20 #pragma warning (push) 21 #pragma warning (disable : 4251) 24 #include <IPSDKSerialization/Engine/BaseSerializationObject.h> 49 static ipUInt64 getDefaultNbMaxThreads();
54 static ipUInt64 getDefaultMinMemSzPerThread();
59 static ipUInt64 getDefaultMaxMemSzPerThread();
64 static boost::filesystem::path getDefaultAllocatedDiskImagePath();
70 void init(
const ipUInt32 nbMaxThreads,
73 const boost::filesystem::path& diskImagePath =
"");
117 BoolResult save(
const boost::filesystem::path& dirPath)
const;
167 #pragma warning (pop) 169 #endif // __IPSDKCORE_LOCALPROCESSINGPOLICY_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
bool isInit() const
retrieve object initialization flag
Definition: LocalProcessingPolicy.h:156
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
IPSDKCORE_API ipUInt64 getMaxMemSzPerThread()
retrieve maximum physical memory (RAM) used by each thread on local computer
IPSDKCORE_API void setNbMaxThreads(const ipUInt32 nbMaxThreads)
modify the maximum number of usable thread for processings on local computer
ipUInt64 _minMemSzPerThread
Definition: LocalProcessingPolicy.h:143
ipUInt64 _maxMemSzPerThread
Definition: LocalProcessingPolicy.h:138
Definition of import/export macro for library.
IPSDKCORE_API void setAllocatedDiskImagePath(const boost::filesystem::path &dirPath)
modify the path to the directory where the automatically disk images are created
boost::filesystem::path _diskImagePath
Directory where automatically allocated disk images are created.
Definition: LocalProcessingPolicy.h:146
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
bool _bInit
object initialization flag
Definition: LocalProcessingPolicy.h:149
IPSDKCORE_API void setMinMemSzPerThread(const ipUInt64 minMemSzPerThread)
modify the minimum physical memory (RAM) used by each thread on local computer
IPSDKCORE_API const boost::filesystem::path & getAllocatedDiskImagePath()
return the path to the directory where the automatically disk images are created
ipUInt32 _nbMaxThreads
Definition: LocalProcessingPolicy.h:133
IPSDKCORE_API ipUInt32 getNbMaxThreads()
retrieve maximum number of usable thread for processings on local computer
Class allowing to describe processing policy for local machine.
Definition: LocalProcessingPolicy.h:32
IPSDKCORE_API void setMaxMemSzPerThread(const ipUInt64 maxMemSzPerThread)
modify the maximum physical memory (RAM) used by each thread on local computer
IPSDKCORE_API ipUInt64 getMinMemSzPerThread()
retrieve minimum physical memory (RAM) used by each thread on local computer
Base class for serializable class.
Definition: BaseSerializationObject.h:33
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53