Changeset 955b91 for src/Parser


Ignore:
Timestamp:
Mar 27, 2012, 3:53:35 PM (13 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

FIX: Removed using namespace std in Vector.hpp.

  • this caused some follow-up problems in other LinearAlgebra modules,
mostly stuff from iostream not having std
prefix then.
this also caused more of them in MoleCuilder modules, mostly due to string,
stringstream, and numeric_limits with std
prefix.
Location:
src/Parser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/PdbParser.cpp

    r912c40 r955b91  
    8484 * @return token type
    8585 */
    86 enum PdbKey::KnownTokens FormatParser< pdb >::getToken(string &line)
     86enum PdbKey::KnownTokens FormatParser< pdb >::getToken(std::string &line)
    8787{
    8888  // look for first space
  • src/Parser/PdbParser.hpp

    r912c40 r955b91  
    6060
    6161private:
    62   enum PdbKey::KnownTokens getToken(string &line);
    63   void readAtomDataLine(const unsigned int _step, string &line, molecule *newmol);
    64   void parseAtomDataKeysLine(string 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);
    6565  void readNeighbors(const unsigned int _step, std::string &line);
    6666//  void adaptImprData();
     
    6969  bool isUsedField(std::string fieldName);
    7070  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);
    7272
    7373  // internal getter and setter
  • src/Parser/TremoloParser.cpp

    r912c40 r955b91  
    347347 * \param with which offset the keys begin within the line
    348348 */
    349 void FormatParser< tremolo >::parseAtomDataKeysLine(string line, int offset) {
     349void FormatParser< tremolo >::parseAtomDataKeysLine(std::string line, int offset) {
    350350  std::string keyword;
    351351  std::stringstream lineStream;
     
    482482 * \param atomid world id of the atom the information belongs to
    483483 */
    484 void FormatParser< tremolo >::readNeighbors(stringstream* line, int numberOfNeighbors, int atomId) {
     484void FormatParser< tremolo >::readNeighbors(std::stringstream* line, int numberOfNeighbors, int atomId) {
    485485  int neighborId = 0;
    486486  for (int i = 0; i < numberOfNeighbors; i++) {
     
    502502 * \return true if the field name is used
    503503 */
    504 bool FormatParser< tremolo >::isUsedField(string fieldName) {
     504bool FormatParser< tremolo >::isUsedField(std::string fieldName) {
    505505  bool fieldNameExists = false;
    506506  for (std::vector<std::string>::iterator usedField = usedFields.begin(); usedField != usedFields.end(); usedField++) {
     
    559559 * \return input string with modified atom IDs
    560560 */
    561 std::string FormatParser< tremolo >::adaptIdDependentDataString(string data) {
     561std::string FormatParser< tremolo >::adaptIdDependentDataString(std::string data) {
    562562  // there might be no IDs
    563563  if (data == "-") {
Note: See TracChangeset for help on using the changeset viewer.