-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.h
51 lines (38 loc) · 783 Bytes
/
tester.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
/* *
* @project nbodies
* @file tester.h
*
* @author Braden Nicholson
* @date 3/28/21, 5/17/22
*/
#ifndef BARNESHUT_TESTER_H
#define BARNESHUT_TESTER_H
#include<vector>
#include<string>
#include<filesystem>
#include "body.h"
namespace fs = std::filesystem;
using std::vector, std::string;
struct Test {
string path;
string name;
};
class TestManager {
private:
vector<Test *> tests;
bool pathExists{};
Test *currentTest;
Test *selected;
vector<Body *> *bodies;
void findTests();
public:
vector<Test *> getTests();
explicit TestManager(vector<Body *> *bodies);
void selectTest();
void nextTest();
void lastTest();
Test *getTest();
Test *getSelected();
void getBodies();
};
#endif //BARNESHUT_TESTER_H