-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharguments.h
More file actions
42 lines (33 loc) · 780 Bytes
/
arguments.h
File metadata and controls
42 lines (33 loc) · 780 Bytes
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
#pragma once
#include <exception>
#include <map>
#include <string>
class ArgumentException : public std::exception
{
public:
ArgumentException(const std::string& msg);
const std::string WhatHappened() const;
private:
const std::string m_Message;
};
class Arguments
{
public:
Arguments(const int argc, const char** argv);
static std::string GetHelpString();
enum class TestProgramme
{
None,
Boring,
HugePages
};
TestProgramme GetProgramme() const;
uint32_t GetBufferSizeGB() const;
uint32_t GetIterations() const;
uint32_t GetThreads() const;
private:
uint32_t m_BufferSizeGB = 0;
uint32_t m_Iterations = 10;
uint32_t m_Threads = 1;
TestProgramme m_Programme = TestProgramme::None;
};