1 |
gezelter |
1240 |
#ifndef _VDWATOM_HPP_ |
2 |
|
|
#define _VDWATOM_HPP_ |
3 |
|
|
|
4 |
|
|
#include <string.h> |
5 |
|
|
//#include <stdlib.h> |
6 |
|
|
//#include <iostream> |
7 |
|
|
|
8 |
|
|
class VDWAtom { |
9 |
|
|
public: |
10 |
|
|
|
11 |
|
|
VDWAtom(); |
12 |
|
|
virtual ~VDWAtom() {} |
13 |
|
|
|
14 |
|
|
void getPos( double theP[3] ) { for (int i = 0; i<3; i++) theP[i]=pos[i]; } |
15 |
|
|
void setPos( double theP[3] ) { for (int i = 0; i<3; i++) pos[i]=theP[i]; } |
16 |
|
|
|
17 |
|
|
double getMass() {return c_mass;} |
18 |
|
|
void setMass(double mass) {c_mass = mass;} |
19 |
|
|
|
20 |
|
|
double getRpar() {return r_par;} |
21 |
|
|
void setRpar(double rp) {r_par = rp;} |
22 |
|
|
|
23 |
|
|
double getEps() {return eps;} |
24 |
|
|
void setEps(double e) {eps = e;} |
25 |
|
|
|
26 |
|
|
char *getType() {return aType;} |
27 |
|
|
void setType(char * name) {strncpy(aType, name, 4);} |
28 |
|
|
|
29 |
|
|
char *getBase() {return aBase;} |
30 |
|
|
void setBase(char * base) {strncpy(aBase, base, 2);} |
31 |
|
|
|
32 |
|
|
char *getResName() {return resName;} |
33 |
|
|
void setResName(char * rn) {strncpy(resName, rn, 10);} |
34 |
|
|
|
35 |
|
|
int getResID( void ) { return resID; } |
36 |
|
|
void setResID( int id ) { resID = id; } |
37 |
|
|
|
38 |
|
|
protected: |
39 |
|
|
|
40 |
|
|
double pos[3]; // the position array |
41 |
|
|
double c_mass; /* the mass of the atom in amu */ |
42 |
|
|
double r_par; |
43 |
|
|
double eps; |
44 |
|
|
char aType[5]; /* it's name */ |
45 |
|
|
char aBase[2]; /* Base */ |
46 |
|
|
char resName[11]; |
47 |
|
|
int resID; // it's unique numeric identity. |
48 |
|
|
|
49 |
|
|
}; |
50 |
|
|
|
51 |
|
|
#endif |