-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetini.h
More file actions
34 lines (32 loc) · 694 Bytes
/
Copy pathgetini.h
File metadata and controls
34 lines (32 loc) · 694 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
#ifndef GETINI_H
#define GETINI_H
#include <fstream>
#include <string>
#include <jsoncpp/json/json.h>
#include <iostream>
#include <armadillo>
using namespace Json;
using namespace std;
using namespace arma;
class GetIni{
public:
GetIni(const char *);
int nOfBodies();
int getIteration();
double getIterStepSize();
void getXprojection(Col<double> &);
void getYprojection(Col<double> &);
void getPositions(Col<double> * &);
void getVelocities(Col<double> * &);
int getVideoDuration();
string getVideoFileName();
void getMass(double * &);
bool getCMFlag();
private:
const char *filename;
Value root;
int numbodies;
int iterations;
double stepsize;
};
#endif