-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitpFile.h
More file actions
35 lines (27 loc) · 763 Bytes
/
itpFile.h
File metadata and controls
35 lines (27 loc) · 763 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
#ifndef ITPFILE_H
#define ITPFILE_H
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
class ItpFile {
public:
ItpFile(const string &filename);
~ItpFile() {};
//inline string getType(const int ii) const { return type[ii]; }
//inline string getRes(const int ii) const { return res[ii]; }
inline float getQ(const int ii) const { return charge[ii]; }
inline int getCG(const int ii) const { return cgnr[ii]; }
int findType(const int whichnum, const string &whichtype,
const string &whichres) const;
private:
vector<string> res;
vector<int> resnum;
vector<int> cgnr; //charge group number
vector<string> type;
vector<float> charge;
int nTypes;
bool solvFlag;
};
#endif