forked from udacity/CppND-System-Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.h
59 lines (49 loc) · 742 Bytes
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef PATH_H
#define PATH_H
#include<string>
using namespace std;
enum CPUStates{
S_USER = 1,
S_NICE,
S_SYSTEM,
S_IDLE,
S_IOWAIT,
S_IRQ,
S_SOFTIRQ,
S_STEAL,
S_GUEST,
S_GUEST_NICE
};
class Path
{
public:
static string basePath()
{
return "/proc/";
}
static string cmdPath()
{
return "/cmdline";
}
static string statusPath()
{
return "/status";
}
static string statPath()
{
return "stat";
}
static string upTimePath()
{
return "uptime";
}
static string memInfoPath()
{
return "meminfo";
}
static string versionPath()
{
return "version";
}
};
#endif