28 #ifndef __TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
29 #define __TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
34 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS
37 #elif TE_PLATFORM == TE_PLATFORMCODE_LINUX || TE_PLATFORM == TE_PLATFORMCODE_APPLE
41 #error "Platform not supported yet! Please contact terralib-team@dpi.inpe.br"
113 #endif //__TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
TECOMMONEXPORT void GetDecompostedLDPathEnvVar(std::vector< std::string > &paths)
Returns the system LD_LIBRARY_PATH enviroment variable, decomposed into directory names...
TECOMMONEXPORT std::string FindInTerraLibPath(const std::string &p)
Returns the path relative to a directory or file in the context of TerraLib.
Configuration flags for the TerraLib Common Runtime module.
TECOMMONEXPORT void GetDecompostedPathEnvVar(std::vector< std::string > &paths)
Returns the system PATH enviroment variable, decomposed into directory names, or an empty vector if n...
TECOMMONEXPORT unsigned int GetPhysProcNumber()
Returns the number of physical processors.
TECOMMONEXPORT unsigned long int GetUsedVirtualMemory()
Returns the amount of used virtual memory (bytes) for the current process (physical + swapped)...
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
TECOMMONEXPORT unsigned long int GetTotalPhysicalMemory()
Returns the amount of total physical memory (bytes).
TECOMMONEXPORT unsigned long int GetFreePhysicalMemory()
Returns the amount of free physical memory (bytes).
This file contains several utility functions when dealing with Linux specific API.
TECOMMONEXPORT unsigned long int GetTotalVirtualMemory()
Returns the amount of total virtual memory (bytes) that can be claimed by the current process (physic...
This file contains several utility functions when dealing with Microsoft Windows specific API...