Changeset 1c55b8 for src/UIElements/CommandLineUI/Query
- Timestamp:
- Aug 27, 2012, 11:36:59 AM (12 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:
- 852ea3
- Parents:
- a55e6f
- git-author:
- Michael Ankele <ankele@…> (08/14/12 14:52:25)
- git-committer:
- Michael Ankele <ankele@…> (08/27/12 11:36:59)
- Location:
- src/UIElements/CommandLineUI/Query
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
ra55e6f r1c55b8 34 34 35 35 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description) : 36 Dialog:: AtomQuery(_param, title, _description)36 Dialog::TQuery<const atom*>(_param, title, _description) 37 37 {} 38 38 -
src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description) : 31 Dialog:: AtomsQuery(_param, title, _description)31 Dialog::TQuery<std::vector<const atom *> >(_param, title, _description) 32 32 {} 33 33 … … 38 38 if (CommandLineParser::getInstance().vm.count(getTitle())) { 39 39 IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 40 const atom *temp_element; 40 41 for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) { 41 42 temp_element = World::getInstance().getAtom(AtomById(*iter)); -
src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description) : 28 Dialog:: BooleanQuery(_param, title, _description)28 Dialog::TQuery<bool>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp
ra55e6f r1c55b8 24 24 }; 25 25 26 class CommandLineDialog::IntCommandLineQuery : public Dialog:: IntQuery{26 class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> { 27 27 public: 28 28 IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description = ""); … … 31 31 }; 32 32 33 class CommandLineDialog::IntsCommandLineQuery : public Dialog:: IntsQuery{33 class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > { 34 34 public: 35 35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description = ""); … … 38 38 }; 39 39 40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog:: UnsignedIntQuery{40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> { 41 41 public: 42 42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description = ""); … … 45 45 }; 46 46 47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog:: UnsignedIntsQuery{47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > { 48 48 public: 49 49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description = ""); … … 52 52 }; 53 53 54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog:: BooleanQuery{54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> { 55 55 public: 56 56 BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description = ""); … … 59 59 }; 60 60 61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog:: DoubleQuery{61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> { 62 62 public: 63 63 DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description = ""); … … 66 66 }; 67 67 68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog:: DoublesQuery{68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > { 69 69 public: 70 70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description = ""); … … 73 73 }; 74 74 75 class CommandLineDialog::StringCommandLineQuery : public Dialog:: StringQuery{75 class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> { 76 76 public: 77 77 StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description = ""); … … 80 80 }; 81 81 82 class CommandLineDialog::StringsCommandLineQuery : public Dialog:: StringsQuery{82 class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > { 83 83 public: 84 84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = ""); … … 87 87 }; 88 88 89 class CommandLineDialog::AtomCommandLineQuery : public Dialog:: AtomQuery{89 class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> { 90 90 public: 91 91 AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description = ""); … … 94 94 }; 95 95 96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog:: AtomsQuery{96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > { 97 97 public: 98 98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = ""); … … 101 101 }; 102 102 103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog:: MoleculeQuery{103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> { 104 104 public: 105 105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = ""); … … 108 108 }; 109 109 110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog:: MoleculesQuery{110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > { 111 111 public: 112 112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = ""); … … 115 115 }; 116 116 117 class CommandLineDialog::VectorCommandLineQuery : public Dialog:: VectorQuery{117 class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> { 118 118 public: 119 119 VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description = ""); … … 122 122 }; 123 123 124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog:: VectorsQuery{124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > { 125 125 public: 126 126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = ""); … … 129 129 }; 130 130 131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog:: RealSpaceMatrixQuery{131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> { 132 132 public: 133 133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = ""); … … 136 136 }; 137 137 138 class CommandLineDialog::ElementCommandLineQuery : public Dialog:: ElementQuery{138 class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> { 139 139 public: 140 140 ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string _description = ""); … … 143 143 }; 144 144 145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog:: ElementsQuery{145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > { 146 146 public: 147 147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = ""); … … 150 150 }; 151 151 152 class CommandLineDialog::FileCommandLineQuery : public Dialog:: FileQuery{152 class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> { 153 153 public: 154 154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = ""); … … 157 157 }; 158 158 159 class CommandLineDialog::FilesCommandLineQuery : public Dialog:: FilesQuery{159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > { 160 160 public: 161 161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string _description = ""); … … 164 164 }; 165 165 166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog:: RandomNumberDistribution_ParametersQuery{166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> { 167 167 public: 168 168 RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = ""); -
src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp
ra55e6f r1c55b8 27 27 28 28 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description) : 29 Dialog:: DoubleQuery(_param, title, _description)29 Dialog::TQuery<double>(_param, title, _description) 30 30 {} 31 31 -
src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description) : 28 Dialog:: DoublesQuery(_param, title, _description)28 Dialog::TQuery<std::vector<double> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, std::string title, std::string _description) : 31 Dialog:: ElementQuery(_param, title, _description)31 Dialog::TQuery<const element *>(_param, title, _description) 32 32 {} 33 33 -
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, std::string title, std::string _description) : 31 Dialog:: ElementsQuery(_param, title, _description)31 Dialog::TQuery<std::vector<const element *> >(_param, title, _description) 32 32 {} 33 33 … … 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >(); 42 const element *temp_element; 42 43 for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) { 43 44 temp_element = periode->FindElement(*ZRunner); -
src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description) : 28 Dialog:: FileQuery(_param, title, _description)28 Dialog::TQuery<boost::filesystem::path>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string _description) : 28 Dialog:: FilesQuery(_param, title, _description)28 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description) : 28 Dialog:: IntQuery(_param, title, _description)28 Dialog::TQuery<int>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description) : 28 Dialog:: IntsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<int> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description) : 31 Dialog:: MoleculeQuery(_param, title, _description)31 Dialog::TQuery<const molecule *>(_param, title, _description) 32 32 {} 33 33 -
src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description) : 32 Dialog:: MoleculesQuery(_param, title, _description)32 Dialog::TQuery<std::vector<const molecule *> >(_param, title, _description) 33 33 {} 34 34 … … 40 40 IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 41 41 for (std::vector<int>::iterator iter = IdxOfMol.begin(); iter != IdxOfMol.end(); ++iter) { 42 temp_element = World::getInstance().getMolecule(MoleculeById(*iter));42 const molecule *temp_element = World::getInstance().getMolecule(MoleculeById(*iter)); 43 43 if (temp_element) 44 44 temp.push_back(temp_element); -
src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp
ra55e6f r1c55b8 32 32 33 33 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description) : 34 Dialog:: RandomNumberDistribution_ParametersQuery(_param, title, _description)34 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, title, _description) 35 35 {} 36 36 -
src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp
ra55e6f r1c55b8 28 28 29 29 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) : 30 Dialog:: RealSpaceMatrixQuery(_param, title, _description)30 Dialog::TQuery<RealSpaceMatrix>(_param, title, _description) 31 31 {} 32 32 -
src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description) : 28 Dialog:: StringQuery(_param, title, _description)28 Dialog::TQuery<std::string>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description) : 28 Dialog:: StringsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<std::string> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description) : 28 Dialog:: UnsignedIntQuery(_param, title, _description)28 Dialog::TQuery<unsigned int>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description) : 28 Dialog:: UnsignedIntsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<unsigned int> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description) : 32 Dialog:: VectorQuery(_param, title, _description)32 Dialog::TQuery<Vector>(_param, title, _description) 33 33 {} 34 34 -
src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description) : 32 Dialog:: VectorsQuery(_param, title, _description)32 Dialog::TQuery<std::vector<Vector> >(_param, title, _description) 33 33 {} 34 34 … … 41 41 temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >(); 42 42 for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) { 43 temp_element = (*iter).toVector();43 Vector temp_element = (*iter).toVector(); 44 44 temp.push_back(temp_element); 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.