delphi_cb
 All Classes Namespaces Files Functions Variables Macros
io_datatype.h
Go to the documentation of this file.
1 
8 #ifndef IO_DATATYPE_H_
9 #define IO_DATATYPE_H_
10 
11 #include <string.h>
12 
13 #include "../interface/environment.h"
14 #include "../misc/misc_grid.h"
15 #include "io_exceptions.h"
16 
21 class CForce
22 {
23  private:
24  string strAtom; // atom name a6
25  string strResidue; // residue name a3
26  string strResidueNum; // residue number a4
27  string strChain; // subunit name a1
28  delphi_real fValue; // atom radii/charge f8.4
29 
30  public:
35  {
36  this->strAtom = " ";
37  this->strResidue = " ";
38  this->strResidueNum = " ";
39  this->strChain = " ";
40  this->fValue = 0.0;
41  };
42 
47  void setAtom(const string strAtomIn) {this->strAtom = strAtomIn;}
48 
53  void setResidue(const string strResidueNameIn) {this->strResidue = strResidueNameIn;}
54 
59  void setResidueNum(const string strResidueNumIn) {this->strResidueNum = strResidueNumIn;}
60 
65  void setChain(const string strChainIn) {this->strChain = strChainIn;}
66 
71  void setValue(const delphi_real fValueIn) {this->fValue = fValueIn;}
72 
77  string getAtom() const {return this->strAtom;}
78 
83  string getResidue() const {return this->strResidue;}
84 
89  string getResidueNum() const {return this->strResidueNum;}
90 
95  string getChain() const {return this->strChain;}
96 
101  delphi_real getValue() const {return this->fValue;}
102 };
103 
108 class CAtomPdb // delphi_pdb_file_record
109 {
110  private:
111  delphi_real fRadius;
112  delphi_real fCharge;
113  SGrid<delphi_real> gPose;
114  string strAtInf;
115 
116  public:
121  {
122  this->fRadius = 0.0;
123  this->fCharge = 0.0;
124  this->gPose.nX = 0.0; this->gPose.nY = 0.0; this->gPose.nZ = 0.0;
125  this->strAtInf = " ";
126  };
127 
132  void setRadius(const delphi_real fRadiusIn) {this->fRadius = fRadiusIn;}
133 
138  void setCharge(const delphi_real fChargeIn) {this->fCharge = fChargeIn;}
139 
144  void setPose(const SGrid<delphi_real> gPoseIn) {this->gPose = gPoseIn;}
145 
152  void setPose(const delphi_real fX, const delphi_real fY, const delphi_real fZ)
153  {this->gPose.nX = fX; this->gPose.nY = fY; this->gPose.nZ = fZ;}
154 
159  void setAtInf(const string strAtInfIn) {this->strAtInf = strAtInfIn;}
160 
165  delphi_real getRadius() const {return this->fRadius;}
166 
171  delphi_real getCharge() const {return this->fCharge;}
172 
177  SGrid<delphi_real> getPose() const {return this->gPose;}
178 
183  string getAtInf() const {return this->strAtInf;}
184 };
185 
186 
187 #endif // IO_DATATYPE_H_
Definition: io_datatype.h:108
void setCharge(const delphi_real fChargeIn)
Definition: io_datatype.h:138
void setAtom(const string strAtomIn)
Definition: io_datatype.h:47
delphi_real getRadius() const
Definition: io_datatype.h:165
CForce()
Definition: io_datatype.h:34
warnings/exceptions occurring in class CIO
void setPose(const delphi_real fX, const delphi_real fY, const delphi_real fZ)
Definition: io_datatype.h:152
delphi_real getCharge() const
Definition: io_datatype.h:171
SGrid< delphi_real > getPose() const
Definition: io_datatype.h:177
void setResidueNum(const string strResidueNumIn)
Definition: io_datatype.h:59
void setPose(const SGrid< delphi_real > gPoseIn)
Definition: io_datatype.h:144
void setResidue(const string strResidueNameIn)
Definition: io_datatype.h:53
string getResidueNum() const
Definition: io_datatype.h:89
CAtomPdb()
Definition: io_datatype.h:120
delphi_real getValue() const
Definition: io_datatype.h:101
string getAtom() const
Definition: io_datatype.h:77
void setChain(const string strChainIn)
Definition: io_datatype.h:65
void setValue(const delphi_real fValueIn)
Definition: io_datatype.h:71
Definition: io_datatype.h:21
string getResidue() const
Definition: io_datatype.h:83
void setRadius(const delphi_real fRadiusIn)
Definition: io_datatype.h:132
string getChain() const
Definition: io_datatype.h:95
void setAtInf(const string strAtInfIn)
Definition: io_datatype.h:159
string getAtInf() const
Definition: io_datatype.h:183