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"
103 #endif //__TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
This file contains several utility functions when dealing with Linux specific API.
void GetDecompostedPathEnvVar(std::vector< std::string > &paths)
Returns the system PATH enviroment variable, decomposed into directory names, or an empty vector if n...
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
unsigned int GetPhysProcNumber()
Returns the number of physical processors.
void GetDecompostedLDPathEnvVar(std::vector< std::string > &paths)
Returns the system LD_LIBRARY_PATH enviroment variable, decomposed into directory names...
unsigned long int GetFreePhysicalMemory()
Returns the amount of free physical memory (bytes).
unsigned long int GetTotalPhysicalMemory()
Returns the amount of total physical memory (bytes).
This file contains several utility functions when dealing with Microsoft Windows specific API...
unsigned long int GetUsedVirtualMemory()
Returns the amount of used virtual memory (bytes) for the current process (physical + swapped)...
unsigned long int GetTotalVirtualMemory()
Returns the amount of total virtual memory (bytes) that can be claimed by the current process (physic...
Configuration flags for the TerraLib Common Runtime module.