-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.h
35 lines (29 loc) · 868 Bytes
/
input.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
#ifndef INPUT_H
#define INPUT_H
#include <string>
#include <fstream>
#include <vector>
using namespace std;
class input
{
public:
input(int i,string n):id(i),nameAtom(n){;}
void setNameAtom(string n){nameAtom=n;}
input(int i,string n1,string n2);
input(int i,string n1,string n2,string n3);
input(int i, string n1, string n2, string n3, string n4,bool improper);
const int & getId(){return id;}
const string & getNameAtom(){return nameAtom;}
string* getBondAtoms(){return szBondAtoms;}
string* getAngleAtoms(){return szAngleAtoms;}
string* getDihedralAtoms(){return szDihedralAtoms;}
string* getImproperAtoms(){return szImproperAtoms;}
private:
int id;
string nameAtom;
string szBondAtoms[2];
string szAngleAtoms[3];
string szDihedralAtoms[4];
string szImproperAtoms[4];
};
#endif // INPUT_H