Changeset 955b91 for src/Parser
- Timestamp:
- Mar 27, 2012, 3:53:35 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 4d2b33
- Parents:
- 912c40
- git-author:
- Frederik Heber <heber@…> (03/14/12 18:08:24)
- git-committer:
- Frederik Heber <heber@…> (03/27/12 15:53:35)
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/PdbParser.cpp
r912c40 r955b91 84 84 * @return token type 85 85 */ 86 enum PdbKey::KnownTokens FormatParser< pdb >::getToken(st ring &line)86 enum PdbKey::KnownTokens FormatParser< pdb >::getToken(std::string &line) 87 87 { 88 88 // look for first space -
src/Parser/PdbParser.hpp
r912c40 r955b91 60 60 61 61 private: 62 enum PdbKey::KnownTokens getToken(st ring &line);63 void readAtomDataLine(const unsigned int _step, st ring &line, molecule *newmol);64 void parseAtomDataKeysLine(st ring line, int offset);62 enum PdbKey::KnownTokens getToken(std::string &line); 63 void readAtomDataLine(const unsigned int _step, std::string &line, molecule *newmol); 64 void parseAtomDataKeysLine(std::string line, int offset); 65 65 void readNeighbors(const unsigned int _step, std::string &line); 66 66 // void adaptImprData(); … … 69 69 bool isUsedField(std::string fieldName); 70 70 void writeNeighbors(std::ostream* file, int numberOfNeighbors, atom* currentAtom); 71 void saveLine( ostream* file, const PdbAtomInfoContainer &atomInfo);71 void saveLine(std::ostream* file, const PdbAtomInfoContainer &atomInfo); 72 72 73 73 // internal getter and setter -
src/Parser/TremoloParser.cpp
r912c40 r955b91 347 347 * \param with which offset the keys begin within the line 348 348 */ 349 void FormatParser< tremolo >::parseAtomDataKeysLine(st ring line, int offset) {349 void FormatParser< tremolo >::parseAtomDataKeysLine(std::string line, int offset) { 350 350 std::string keyword; 351 351 std::stringstream lineStream; … … 482 482 * \param atomid world id of the atom the information belongs to 483 483 */ 484 void FormatParser< tremolo >::readNeighbors(st ringstream* line, int numberOfNeighbors, int atomId) {484 void FormatParser< tremolo >::readNeighbors(std::stringstream* line, int numberOfNeighbors, int atomId) { 485 485 int neighborId = 0; 486 486 for (int i = 0; i < numberOfNeighbors; i++) { … … 502 502 * \return true if the field name is used 503 503 */ 504 bool FormatParser< tremolo >::isUsedField(st ring fieldName) {504 bool FormatParser< tremolo >::isUsedField(std::string fieldName) { 505 505 bool fieldNameExists = false; 506 506 for (std::vector<std::string>::iterator usedField = usedFields.begin(); usedField != usedFields.end(); usedField++) { … … 559 559 * \return input string with modified atom IDs 560 560 */ 561 std::string FormatParser< tremolo >::adaptIdDependentDataString(st ring data) {561 std::string FormatParser< tremolo >::adaptIdDependentDataString(std::string data) { 562 562 // there might be no IDs 563 563 if (data == "-") {
Note:
See TracChangeset
for help on using the changeset viewer.