-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.h
More file actions
37 lines (28 loc) · 739 Bytes
/
Copy pathSystem.h
File metadata and controls
37 lines (28 loc) · 739 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
#include <vector>
#include <memory>
#include <fstream>
#include "Block.h"
#include "InputReader.h"
using namespace std;
class System
{
public:
vector<shared_ptr<Block>> blocks;
InputReader* inputReader;
ofstream outFilePositions;
ofstream outFileForce;
ofstream outFileVelocity;
ofstream outFilePusher;
//ofstream outFileParameters;
//Pointer made to hold data arrays
// double* positions;
// double* velocity;
// double* force;
System(InputReader* &input);
~System();
void run();
void init();
int checkProgress(double time, double tStop, int percent,double curretenTime, double start);
void writeArrayToFile(ofstream & outFile, double * array, int numBlocks);
void pokeSide(double factor);
};