Ignore:
Timestamp:
Aug 27, 2012, 11:36:59 AM (12 years ago)
Author:
Michael Ankele <ankele@…>
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)
Message:

combined Query super classes into template

Location:
src/UIElements/CommandLineUI/Query
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp

    ra55e6f r1c55b8  
    3434
    3535CommandLineDialog::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)
    3737{}
    3838
  • src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2929
    3030CommandLineDialog::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)
    3232{}
    3333
     
    3838  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    3939    IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
     40    const atom *temp_element;
    4041    for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) {
    4142      temp_element = World::getInstance().getAtom(AtomById(*iter));
  • src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description) :
    28     Dialog::BooleanQuery(_param, title, _description)
     28    Dialog::TQuery<bool>(_param, title, _description)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp

    ra55e6f r1c55b8  
    2424};
    2525
    26 class CommandLineDialog::IntCommandLineQuery : public Dialog::IntQuery {
     26class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> {
    2727public:
    2828  IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description = "");
     
    3131};
    3232
    33 class CommandLineDialog::IntsCommandLineQuery : public Dialog::IntsQuery {
     33class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > {
    3434public:
    3535  IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description = "");
     
    3838};
    3939
    40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::UnsignedIntQuery {
     40class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> {
    4141public:
    4242  UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description = "");
     
    4545};
    4646
    47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::UnsignedIntsQuery {
     47class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > {
    4848public:
    4949  UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description = "");
     
    5252};
    5353
    54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog::BooleanQuery {
     54class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> {
    5555public:
    5656  BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description = "");
     
    5959};
    6060
    61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog::DoubleQuery {
     61class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> {
    6262public:
    6363  DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description = "");
     
    6666};
    6767
    68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog::DoublesQuery {
     68class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > {
    6969public:
    7070  DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description = "");
     
    7373};
    7474
    75 class CommandLineDialog::StringCommandLineQuery : public Dialog::StringQuery {
     75class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> {
    7676public:
    7777  StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description = "");
     
    8080};
    8181
    82 class CommandLineDialog::StringsCommandLineQuery : public Dialog::StringsQuery {
     82class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > {
    8383public:
    8484  StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = "");
     
    8787};
    8888
    89 class CommandLineDialog::AtomCommandLineQuery : public Dialog::AtomQuery {
     89class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> {
    9090public:
    9191  AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description = "");
     
    9494};
    9595
    96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog::AtomsQuery {
     96class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > {
    9797public:
    9898  AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = "");
     
    101101};
    102102
    103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::MoleculeQuery {
     103class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> {
    104104public:
    105105  MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = "");
     
    108108};
    109109
    110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::MoleculesQuery {
     110class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > {
    111111public:
    112112  MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = "");
     
    115115};
    116116
    117 class CommandLineDialog::VectorCommandLineQuery : public Dialog::VectorQuery {
     117class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> {
    118118public:
    119119  VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description = "");
     
    122122};
    123123
    124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog::VectorsQuery {
     124class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > {
    125125public:
    126126  VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = "");
     
    129129};
    130130
    131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::RealSpaceMatrixQuery {
     131class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> {
    132132public:
    133133  RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = "");
     
    136136};
    137137
    138 class CommandLineDialog::ElementCommandLineQuery : public Dialog::ElementQuery {
     138class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> {
    139139public:
    140140  ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string _description = "");
     
    143143};
    144144
    145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog::ElementsQuery {
     145class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > {
    146146public:
    147147  ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = "");
     
    150150};
    151151
    152 class CommandLineDialog::FileCommandLineQuery : public Dialog::FileQuery {
     152class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> {
    153153public:
    154154  FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = "");
     
    157157};
    158158
    159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::FilesQuery {
     159class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
    160160public:
    161161  FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description = "");
     
    164164};
    165165
    166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
     166class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> {
    167167public:
    168168  RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = "");
  • src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2727
    2828CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description) :
    29     Dialog::DoubleQuery(_param, title, _description)
     29    Dialog::TQuery<double>(_param, title, _description)
    3030{}
    3131
  • src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2929
    3030CommandLineDialog::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)
    3232{}
    3333
  • src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2929
    3030CommandLineDialog::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)
    3232{}
    3333
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >();
     42    const element *temp_element;
    4243    for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) {
    4344      temp_element = periode->FindElement(*ZRunner);
  • src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description) :
    28     Dialog::IntQuery(_param, title, _description)
     28    Dialog::TQuery<int>(_param, title, _description)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2929
    3030CommandLineDialog::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)
    3232{}
    3333
  • src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp

    ra55e6f r1c55b8  
    3030
    3131CommandLineDialog::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)
    3333{}
    3434
     
    4040    IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
    4141    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));
    4343      if (temp_element)
    4444        temp.push_back(temp_element);
  • src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp

    ra55e6f r1c55b8  
    3232
    3333CommandLineDialog::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)
    3535{}
    3636
  • src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2828
    2929CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) :
    30     Dialog::RealSpaceMatrixQuery(_param, title, _description)
     30    Dialog::TQuery<RealSpaceMatrix>(_param, title, _description)
    3131{}
    3232
  • src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    2626
    2727CommandLineDialog::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)
    2929{}
    3030
  • src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp

    ra55e6f r1c55b8  
    3030
    3131CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description) :
    32     Dialog::VectorQuery(_param, title, _description)
     32    Dialog::TQuery<Vector>(_param, title, _description)
    3333{}
    3434
  • src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp

    ra55e6f r1c55b8  
    3030
    3131CommandLineDialog::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)
    3333{}
    3434
     
    4141    temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >();
    4242    for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) {
    43       temp_element = (*iter).toVector();
     43      Vector temp_element = (*iter).toVector();
    4444      temp.push_back(temp_element);
    4545    }
Note: See TracChangeset for help on using the changeset viewer.