-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadinput.h
More file actions
47 lines (43 loc) · 1.23 KB
/
readinput.h
File metadata and controls
47 lines (43 loc) · 1.23 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
#ifndef READINPUT_H
#define READINPUT_H
#include <fstream>
#include <string>
#include <vector>
#include <iostream>
#include "input.h"
#include <mix.h>
#include <stdlib.h>
#include "fepatoms.h"
using namespace std;
class readInput
{
public:
readInput(string fn);
const vector<input*> getPairIds() {return vecPair;}
const vector<input*> getBondIds() {return vecBonds;}
const vector<input*> getAngleIds() {return vecAngles;}
const vector<fepAtoms*> getFepAtoms() {return vecFep;}
const vector<input*> getDihedralIds() {return vecDihedral;}
const vector<input*> getImproperIds() {return vecImproper;}
bool ifii(){return printii;}
~readInput();
vector<string> getFiles() {return files;}
vector<Cmix*> & getMixing() {return vecMix;}
vector<string> getNames(string in);
private:
bool printii;
string filename;
ifstream instream;
string path;
string location;
vector<input*> vecPair;
vector<input*> vecBonds,vecDihedral,vecImproper;
vector<input*> vecAngles;
vector<input*>::iterator it;
vector<Cmix*>::iterator itMix;
vector<fepAtoms*>::iterator itFep;
vector<string> files;
vector<Cmix*> vecMix;
vector<fepAtoms*> vecFep;
};
#endif // READINPUT_H