28 #ifndef __TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
29 #define __TERRALIB_COMMON_INTERNAL_PLATFORMUTILS_H
33 #include "../Defines.h"
35 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS
38 #elif TE_PLATFORM == TE_PLATFORMCODE_LINUX || TE_PLATFORM == TE_PLATFORMCODE_APPLE
42 #error "Platform not supported yet! Please contact terralib-team@dpi.inpe.br"
This file contains several utility functions when dealing with Linux specific API.
This file contains several utility functions when dealing with Microsoft Windows specific API.
TECOMMONEXPORT void GetDecompostedLDPathEnvVar(std::vector< std::string > &paths)
Returns the system LD_LIBRARY_PATH enviroment variable, decomposed into directory names,...
TECOMMONEXPORT unsigned long long int GetTotalPhysicalMemory()
Returns the amount of total physical memory (bytes).
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 long int GetUsedVirtualMemory()
Returns the amount of used virtual memory (bytes) for the current process (physical + swapped).
TECOMMONEXPORT unsigned long long int GetFreePhysicalMemory()
Returns the amount of free physical memory (bytes).
TECOMMONEXPORT unsigned long long int GetTotalVirtualMemory()
Returns the amount of total virtual memory (bytes) that can be claimed by the current process (physic...
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).