Changeset 852ea3 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:
- 7e6a1b
- Parents:
- 1c55b8
- git-author:
- Michael Ankele <ankele@…> (08/16/12 15:38:10)
- git-committer:
- Michael Ankele <ankele@…> (08/27/12 11:36:59)
- Location:
- src/UIElements/CommandLineUI/Query
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
r1c55b8 r852ea3 43 43 if (CommandLineParser::getInstance().vm.count(getTitle())) { 44 44 IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as<int>(); 45 param.set(World::getInstance().getAtom(AtomById(IdxOfAtom)));45 temp = World::getInstance().getAtom(AtomById(IdxOfAtom)); 46 46 return true; 47 47 } else { -
src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp
r1c55b8 r852ea3 44 44 temp.push_back(temp_element); 45 45 } 46 param.set(temp);47 46 return true; 48 47 } else { -
src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::BooleanCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as<bool>());35 temp = CommandLineParser::getInstance().vm[getTitle()].as<bool>(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp
r1c55b8 r852ea3 34 34 bool CommandLineDialog::DoubleCommandLineQuery::handle() { 35 35 if (CommandLineParser::getInstance().vm.count(getTitle())) { 36 param.set(CommandLineParser::getInstance().vm[getTitle()].as<double>());36 temp = CommandLineParser::getInstance().vm[getTitle()].as<double>(); 37 37 return true; 38 38 } else { -
src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::DoublesCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<double> >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<double> >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
r1c55b8 r852ea3 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 int Z = CommandLineParser::getInstance().vm[getTitle()].as< int >(); 42 param.set(periode->FindElement(Z));43 ASSERT( param.get()!= NULL, "Invalid element specified in ElementCommandLineQuery");42 temp = periode->FindElement(Z); 43 ASSERT(temp != NULL, "Invalid element specified in ElementCommandLineQuery"); 44 44 return true; 45 45 } else { -
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
r1c55b8 r852ea3 46 46 temp.push_back(temp_element); 47 47 } 48 param.set(temp);49 48 return true; 50 49 } else { -
src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::FileCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< boost::filesystem::path >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< boost::filesystem::path >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::FilesCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<boost::filesystem::path> >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<boost::filesystem::path> >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::IntCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as<int>());35 temp = CommandLineParser::getInstance().vm[getTitle()].as<int>(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::IntsCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp
r1c55b8 r852ea3 38 38 if (CommandLineParser::getInstance().vm.count(getTitle())) { 39 39 IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as<int>(); 40 param.set(World::getInstance().getMolecule(MoleculeById(IdxOfMol)));40 temp = World::getInstance().getMolecule(MoleculeById(IdxOfMol)); 41 41 return true; 42 42 } else { -
src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp
r1c55b8 r852ea3 44 44 temp.push_back(temp_element); 45 45 } 46 param.set(temp);47 46 return true; 48 47 } else { -
src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp
r1c55b8 r852ea3 43 43 // LOG(1, "INFO: Parameter set from CommandLine is '" << text.str() << "'"); 44 44 text >> temp; 45 param.set(temp);46 45 return true; 47 46 } else { -
src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp
r1c55b8 r852ea3 38 38 if (CommandLineParser::getInstance().vm.count(getTitle())) { 39 39 _temp = CommandLineParser::getInstance().vm[getTitle()].as< RealSpaceMatrixValue >(); 40 param.set(_temp.toRealSpaceMatrix());40 temp = _temp.toRealSpaceMatrix(); 41 41 return true; 42 42 } else { -
src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::StringCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as<string>());35 temp = CommandLineParser::getInstance().vm[getTitle()].as<string>(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::StringsCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<std::string> >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<std::string> >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::UnsignedIntCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as<unsigned int>());35 temp = CommandLineParser::getInstance().vm[getTitle()].as<unsigned int>(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp
r1c55b8 r852ea3 33 33 bool CommandLineDialog::UnsignedIntsCommandLineQuery::handle() { 34 34 if (CommandLineParser::getInstance().vm.count(getTitle())) { 35 param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<unsigned int> >());35 temp = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<unsigned int> >(); 36 36 return true; 37 37 } else { -
src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp
r1c55b8 r852ea3 41 41 _temp = CommandLineParser::getInstance().vm[getTitle()].as< VectorValue >(); 42 42 temp = _temp.toVector(); 43 param.set(temp);44 43 return true; 45 44 } else { -
src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp
r1c55b8 r852ea3 44 44 temp.push_back(temp_element); 45 45 } 46 param.set(temp);47 46 return true; 48 47 } else {
Note:
See TracChangeset
for help on using the changeset viewer.