2013-10-26 21:19:49 +00:00
|
|
|
#ifndef SYSTEM_H
|
|
|
|
#define SYSTEM_H
|
|
|
|
|
|
|
|
#include "system_global.h"
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
namespace paysages {
|
|
|
|
namespace system {
|
2013-10-26 21:19:49 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Access to system info
|
|
|
|
*/
|
2015-11-09 21:30:46 +00:00
|
|
|
class SYSTEMSHARED_EXPORT System {
|
|
|
|
public:
|
2015-11-18 21:22:09 +00:00
|
|
|
/**
|
|
|
|
* Get the number of CPU cores available on current system.
|
|
|
|
*/
|
2013-10-26 21:19:49 +00:00
|
|
|
static int getCoreCount();
|
2015-11-18 21:22:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get an identifying number for the current process.
|
|
|
|
*/
|
|
|
|
static int getProcessId();
|
2013-10-26 21:19:49 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SYSTEM_H
|