-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgumentParser.h
More file actions
51 lines (40 loc) · 1.4 KB
/
ArgumentParser.h
File metadata and controls
51 lines (40 loc) · 1.4 KB
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
//
// Created by wojkly on 6/1/21.
//
#ifndef DOUBLE_PENDULUM_SIMULATION_ARGUMENTPARSER_H
#define DOUBLE_PENDULUM_SIMULATION_ARGUMENTPARSER_H
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class ArgumentParser {
unsigned int simDims;
unsigned int mouseYoffset;
unsigned int mouseGrabThreshhold;
unsigned int pendulumCount;
double pendulumInitPositionDifference;
double timeInterval;
double gravity;
double mass1;
double mass2;
double thetaInit1;
double thetaInit2;
double length1;
double length2;
public:
void init(const string& filename);
unsigned int getSimDims() const{return simDims;};
unsigned int getMouseYoffset() const{return mouseYoffset;};
unsigned int getMouseGrabThreshhold()const{return mouseGrabThreshhold;};
unsigned int getPendulumCount()const{return pendulumCount;};
double getPendulumInitPositionDifference()const{return pendulumInitPositionDifference;};
double getTimeInterval()const{return timeInterval;};
double getGravity()const{return gravity;};
double getMass1()const{return mass1;};
double getMass2()const{return mass2;};
double getThetaInit1()const{return thetaInit1;};
double getThetaInit2()const{return thetaInit2;};
double getLength1()const{return length1;};
double getLength2()const{return length2;};
};
#endif //DOUBLE_PENDULUM_SIMULATION_ARGUMENTPARSER_H