paysages3d/src/system/System.h

34 lines
523 B
C++

#ifndef SYSTEM_H
#define SYSTEM_H
#include "system_global.h"
namespace paysages {
namespace system {
/**
* Access to system info
*/
class SYSTEMSHARED_EXPORT System {
public:
/**
* Get the number of CPU cores available on current system.
*/
static int getCoreCount();
/**
* Get an identifying number for the current process.
*/
static int getProcessId();
};
}
}
#ifdef PLATFORM_WIN
#define TMP_DIRECTORY "c:/temp/"
#else
#define TMP_DIRECTORY "/tmp/"
#endif
#endif // SYSTEM_H