20 #include "../interface/environment.h"
21 #include "../misc/misc_grid.h"
27 const int SIZEFILE = 1;
28 const int CHARGEFILE = 2;
30 const int STDPDB = 10;
31 const int MODPDB = 20;
32 const int PQRPDB = 21;
33 const int MOD4PDB = 30;
34 const int PQR4PDB = 31;
58 string toUpperCase(
const string& strLine);
65 string removeSpace(
const string& strLine);
72 bool checkFileFormat(
const string& strFile);
108 void readFileInNotPKFormat(ifstream& ifFileStream,
const int& iFileType);
115 void readFileInPKFormat(ifstream& ifFileStream,
const int& iFileType);
117 #ifdef DEBUG_IO_FORCE
123 void printForce(
const int& iFileType,
const vector<CForce>& prgaf);
136 delphi_integer FindRecordIndex(
const string& strAtom,
const string& strResidue,
const string& strResidueNum,
137 const string& strChain,
const delphi_integer& iRecordNum,vector<CForce>* prgaf);
149 delphi_integer FindRecord(
const string& strAtom,
const string& strResidue,
const string& strResidueNum,
150 const string& strChain,
const int& iFileType, delphi_real& fValue);
168 void readStdPdbFile(ifstream& ifPdbFileStream);
174 void readModFile1(ifstream& ifPdbFileStream);
180 void readModFile4(ifstream& ifPdbFileStream);
186 void readPqrFile(ifstream& ifPdbFileStream);
192 void readMod4File(ifstream& ifPdbFileStream);
198 void readPqr4File(ifstream& ifPdbFileStream);
206 void readUnformattedPdb(
const string& strPdbFile,ifstream& ifPdbFileStream,
bool& bPostProcess);
287 CIO():fDielec(4.0),fEPKT(167100.9162872952/297.3342119)
291 cout <<
"****************************************************************\n";
292 cout <<
"* CIO is constructed *\n";
293 cout <<
"****************************************************************\n";
302 bOnlyMolecule =
true;
303 bExistRadiiInfo =
false;
310 CIO(delphi_real fDielecIn,delphi_real fEPKTIn):fDielec(fDielecIn),fEPKT(fEPKTIn)
314 cout <<
"****************************************************************\n";
315 cout <<
"* CIO is constructed *\n";
316 cout <<
"****************************************************************\n";
325 bOnlyMolecule =
true;
326 bExistRadiiInfo =
false;
337 cout <<
"****************************************************************\n";
338 cout <<
"* CIO is destroyed *\n";
339 cout <<
"****************************************************************\n";
348 void readForceFile(
const string& strFile);
356 void readPdbFile(
const string& strPdbFile,
const int& iPdbFormat,
const bool& bPdbUnformat);
362 void writeUnformatPdb(
const string& strPdbFile);
369 void writeModifiedPdb(
const string& strPdbFile,
const int& iModPdbFormatOut);
385 void setDelphiAtom(
const bool& bSolvePB,
const bool& bSurfCrgInSite,
const string& strSizeFile,
386 const string& strCrgFile,
const string& strPdbFile,
const int& iPdbFormat,
387 const bool& bPdbUnformat);
397 const delphi_real& fScale);
410 void writeEpsMap(
const delphi_integer& iAtomNumIn,
const delphi_integer& iObjectNumIn,
411 const delphi_integer& iGrid,
const delphi_real& fScale,
const SGrid<delphi_real>& fgBoxCenter,
413 const string& strEpsFile);
static vector< CForce > prgac
Definition: io.h:101
delphi_integer iObjectNum
Definition: io.h:239
vector< CAtomPdb > vctapAtomPdb
Definition: io.h:263
static delphi_integer iRadiusNum
Definition: io.h:83
delphi_integer iResidueNum
Definition: io.h:251
vector< delphi_real > vctfMediaEps
Definition: io.h:269
const delphi_real fDielec
Definition: io.h:42
warnings/exceptions occurring in class CIO
CIO(delphi_real fDielecIn, delphi_real fEPKTIn)
Definition: io.h:310
vector< delphi_integer > vctiAtomMediaNum
Definition: io.h:282
static delphi_integer iCrgNum
Definition: io.h:95
~CIO()
Definition: io.h:333
delphi_integer iAtomNum
Definition: io.h:245
bool bExistRadiiInfo
Definition: io.h:219
defining data types used for IO class
static vector< CForce > prgas
Definition: io.h:89
bool bOnlyMolecule
Definition: io.h:257
delphi_integer iObjectMediaNum
Definition: io.h:162
const delphi_real fEPKT
Definition: io.h:47
delphi_integer iMediaNum
Definition: io.h:233
vector< delphi_integer > prgiObjectMediaNum
Definition: io.h:225
CIO()
Definition: io.h:287
vector< string > vctstrObject
Definition: io.h:276