Changeset f130d4 for src/UIElements/CommandLineUI
- Timestamp:
- Oct 5, 2013, 9:31:54 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:
- 25ce49
- Parents:
- 07414d7
- git-author:
- Frederik Heber <heber@…> (09/06/13 15:36:56)
- git-committer:
- Frederik Heber <heber@…> (10/05/13 09:31:54)
- Location:
- src/UIElements/CommandLineUI
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineDialog.cpp
r07414d7 rf130d4 51 51 52 52 53 void CommandLineDialog::queryEmpty(const char* title, std::string _description){54 registerQuery(new EmptyCommandLineQuery(title, _description));53 void CommandLineDialog::queryEmpty(const std::string title, const std::string description){ 54 registerQuery(new EmptyCommandLineQuery(title, description)); 55 55 } 56 56 57 void CommandLineDialog::queryInt(Parameter<int> ¶m, const char* title, std::string _description){58 registerQuery(new IntCommandLineQuery(param, title, _description));57 void CommandLineDialog::queryInt(Parameter<int> ¶m, const std::string title, const std::string description){ 58 registerQuery(new IntCommandLineQuery(param, title, description)); 59 59 } 60 60 61 void CommandLineDialog::queryInts(Parameter<std::vector<int> > ¶m, const char* title, std::string _description){62 registerQuery(new IntsCommandLineQuery(param, title, _description));61 void CommandLineDialog::queryInts(Parameter<std::vector<int> > ¶m, const std::string title, const std::string description){ 62 registerQuery(new IntsCommandLineQuery(param, title, description)); 63 63 } 64 64 65 void CommandLineDialog::queryUnsignedInt(Parameter<unsigned int> ¶m, const char* title, std::string _description){66 registerQuery(new UnsignedIntCommandLineQuery(param, title, _description));65 void CommandLineDialog::queryUnsignedInt(Parameter<unsigned int> ¶m, const std::string title, const std::string description){ 66 registerQuery(new UnsignedIntCommandLineQuery(param, title, description)); 67 67 } 68 68 69 void CommandLineDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > ¶m, const char* title, std::string _description){70 registerQuery(new UnsignedIntsCommandLineQuery(param, title, _description));69 void CommandLineDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > ¶m, const std::string title, const std::string description){ 70 registerQuery(new UnsignedIntsCommandLineQuery(param, title, description)); 71 71 } 72 72 73 void CommandLineDialog::queryBoolean(Parameter<bool> ¶m, const char* title, std::string _description){74 registerQuery(new BooleanCommandLineQuery(param, title, _description));73 void CommandLineDialog::queryBoolean(Parameter<bool> ¶m, const std::string title, const std::string description){ 74 registerQuery(new BooleanCommandLineQuery(param, title, description)); 75 75 } 76 76 77 void CommandLineDialog::queryDouble(Parameter<double> ¶m, const char* title, std::string _description){78 registerQuery(new DoubleCommandLineQuery(param, title, _description));77 void CommandLineDialog::queryDouble(Parameter<double> ¶m, const std::string title, const std::string description){ 78 registerQuery(new DoubleCommandLineQuery(param, title, description)); 79 79 } 80 80 81 void CommandLineDialog::queryDoubles(Parameter<std::vector<double> > ¶m, const char* title, std::string _description){82 registerQuery(new DoublesCommandLineQuery(param, title, _description));81 void CommandLineDialog::queryDoubles(Parameter<std::vector<double> > ¶m, const std::string title, const std::string description){ 82 registerQuery(new DoublesCommandLineQuery(param, title, description)); 83 83 } 84 84 85 void CommandLineDialog::queryString(Parameter<std::string> ¶m, const char* title, std::string _description){86 registerQuery(new StringCommandLineQuery(param, title, _description));85 void CommandLineDialog::queryString(Parameter<std::string> ¶m, const std::string title, const std::string description){ 86 registerQuery(new StringCommandLineQuery(param, title, description)); 87 87 } 88 88 89 void CommandLineDialog::queryStrings(Parameter<std::vector<std::string> > ¶m, const char* title, std::string _description){90 registerQuery(new StringsCommandLineQuery(param, title, _description));89 void CommandLineDialog::queryStrings(Parameter<std::vector<std::string> > ¶m, const std::string title, const std::string description){ 90 registerQuery(new StringsCommandLineQuery(param, title, description)); 91 91 } 92 92 93 void CommandLineDialog::queryAtom(Parameter<const atom *> ¶m, const char* title, std::string _description) {94 registerQuery(new AtomCommandLineQuery(param, title, _description));93 void CommandLineDialog::queryAtom(Parameter<const atom *> ¶m, const std::string title, const std::string description) { 94 registerQuery(new AtomCommandLineQuery(param, title, description)); 95 95 } 96 96 97 void CommandLineDialog::queryAtoms(Parameter<std::vector<const atom *> > ¶m, const char* title, std::string _description) {98 registerQuery(new AtomsCommandLineQuery(param, title, _description));97 void CommandLineDialog::queryAtoms(Parameter<std::vector<const atom *> > ¶m, const std::string title, const std::string description) { 98 registerQuery(new AtomsCommandLineQuery(param, title, description)); 99 99 } 100 100 101 void CommandLineDialog::queryMolecule(Parameter<const molecule *> ¶m, const char* title, std::string _description) {102 registerQuery(new MoleculeCommandLineQuery(param, title, _description));101 void CommandLineDialog::queryMolecule(Parameter<const molecule *> ¶m, const std::string title, const std::string description) { 102 registerQuery(new MoleculeCommandLineQuery(param, title, description)); 103 103 } 104 104 105 void CommandLineDialog::queryMolecules(Parameter<std::vector<const molecule *> > ¶m, const char* title, std::string _description) {106 registerQuery(new MoleculesCommandLineQuery(param, title, _description));105 void CommandLineDialog::queryMolecules(Parameter<std::vector<const molecule *> > ¶m, const std::string title, const std::string description) { 106 registerQuery(new MoleculesCommandLineQuery(param, title, description)); 107 107 } 108 108 109 void CommandLineDialog::queryVector(Parameter<Vector> ¶m, const char* title, std::string _description) {110 registerQuery(new VectorCommandLineQuery(param, title, _description));109 void CommandLineDialog::queryVector(Parameter<Vector> ¶m, const std::string title, const std::string description) { 110 registerQuery(new VectorCommandLineQuery(param, title, description)); 111 111 } 112 112 113 void CommandLineDialog::queryVectors(Parameter<std::vector<Vector> > ¶m, const char* title, std::string _description) {114 registerQuery(new VectorsCommandLineQuery(param, title, _description));113 void CommandLineDialog::queryVectors(Parameter<std::vector<Vector> > ¶m, const std::string title, const std::string description) { 114 registerQuery(new VectorsCommandLineQuery(param, title, description)); 115 115 } 116 116 117 void CommandLineDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> ¶m, const char* title, std::string _description) {118 registerQuery(new RealSpaceMatrixCommandLineQuery(param, title, _description));117 void CommandLineDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> ¶m, const std::string title, const std::string description) { 118 registerQuery(new RealSpaceMatrixCommandLineQuery(param, title,description)); 119 119 } 120 120 121 void CommandLineDialog::queryElement(Parameter<const element *> ¶m, const char* title, std::string _description){122 registerQuery(new ElementCommandLineQuery(param, title, _description));121 void CommandLineDialog::queryElement(Parameter<const element *> ¶m, const std::string title, const std::string description){ 122 registerQuery(new ElementCommandLineQuery(param, title, description)); 123 123 } 124 124 125 void CommandLineDialog::queryElements(Parameter<std::vector<const element *> > ¶m, const char* title, std::string _description){126 registerQuery(new ElementsCommandLineQuery(param, title, _description));125 void CommandLineDialog::queryElements(Parameter<std::vector<const element *> > ¶m, const std::string title, const std::string description){ 126 registerQuery(new ElementsCommandLineQuery(param, title, description)); 127 127 } 128 128 129 void CommandLineDialog::queryFile(Parameter<boost::filesystem::path> ¶m, const char* title, std::string _description){130 registerQuery(new FileCommandLineQuery(param, title, _description));129 void CommandLineDialog::queryFile(Parameter<boost::filesystem::path> ¶m, const std::string title, const std::string description){ 130 registerQuery(new FileCommandLineQuery(param, title, description)); 131 131 } 132 132 133 void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > ¶m, const char* title, std::string _description){134 registerQuery(new FilesCommandLineQuery(param, title, _description));133 void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > ¶m, const std::string title, const std::string description){ 134 registerQuery(new FilesCommandLineQuery(param, title, description)); 135 135 } 136 136 137 void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> ¶m, const char* title, std::string _description){138 registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, _description));137 void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> ¶m, const std::string title, const std::string description){ 138 registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, description)); 139 139 } 140 140 -
src/UIElements/CommandLineUI/CommandLineDialog.hpp
r07414d7 rf130d4 33 33 virtual ~CommandLineDialog(); 34 34 35 virtual void queryEmpty(const char *,std::string = "");36 virtual void queryInt(Parameter<int> &, const char *,std::string = "");37 virtual void queryInts(Parameter<std::vector<int> > &, const char *,std::string = "");38 virtual void queryUnsignedInt(Parameter<unsigned int> &, const char *,std::string = "");39 virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const char *,std::string = "");40 virtual void queryBoolean(Parameter<bool> &, const char *,std::string = "");41 virtual void queryString(Parameter<std::string> &, const char*,std::string = "");42 virtual void queryStrings(Parameter<std::vector<std::string> > &, const char*,std::string = "");43 virtual void queryDouble(Parameter<double> &, const char*,std::string = "");44 virtual void queryDoubles(Parameter<std::vector<double> > &, const char*,std::string = "");45 virtual void queryAtom(Parameter<const atom *> &, const char*,std::string = "");46 virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const char*,std::string = "");47 virtual void queryMolecule(Parameter<const molecule *> &, const char*,std::string = "");48 virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const char*,std::string = "");49 virtual void queryVector(Parameter<Vector> &, const char*,std::string = "");50 virtual void queryVectors(Parameter<std::vector<Vector> > &, const char*,std::string = "");51 virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const char*,std::string = "");52 virtual void queryElement(Parameter<const element *> &, const char*,std::string = "");53 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*,std::string = "");54 virtual void queryFile(Parameter<boost::filesystem::path> &, const char*,std::string = "");55 virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const char*,std::string = "");56 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*,std::string = "");35 virtual void queryEmpty(const std::string ="", const std::string = ""); 36 virtual void queryInt(Parameter<int> &, const std::string ="", const std::string = ""); 37 virtual void queryInts(Parameter<std::vector<int> > &, const std::string ="", const std::string = ""); 38 virtual void queryUnsignedInt(Parameter<unsigned int> &, const std::string ="", const std::string = ""); 39 virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const std::string ="", const std::string = ""); 40 virtual void queryBoolean(Parameter<bool> &, const std::string ="", const std::string = ""); 41 virtual void queryString(Parameter<std::string> &, const std::string ="", const std::string = ""); 42 virtual void queryStrings(Parameter<std::vector<std::string> > &, const std::string ="", const std::string = ""); 43 virtual void queryDouble(Parameter<double> &, const std::string ="", const std::string = ""); 44 virtual void queryDoubles(Parameter<std::vector<double> > &, const std::string ="", const std::string = ""); 45 virtual void queryAtom(Parameter<const atom *> &, const std::string ="", const std::string = ""); 46 virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const std::string ="", const std::string = ""); 47 virtual void queryMolecule(Parameter<const molecule *> &, const std::string ="", const std::string = ""); 48 virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const std::string ="", const std::string = ""); 49 virtual void queryVector(Parameter<Vector> &, const std::string ="", const std::string = ""); 50 virtual void queryVectors(Parameter<std::vector<Vector> > &, const std::string ="", const std::string = ""); 51 virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const std::string ="", const std::string = ""); 52 virtual void queryElement(Parameter<const element *> &, const std::string ="", const std::string = ""); 53 virtual void queryElements(Parameter<std::vector<const element *> > &, const std::string ="", const std::string = ""); 54 virtual void queryFile(Parameter<boost::filesystem::path> &, const std::string ="", const std::string = ""); 55 virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const std::string ="", const std::string = ""); 56 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const std::string ="", const std::string = ""); 57 57 // specialized stuff for command line queries 58 58 // all placed into Query/CommandLineQuery.hpp -
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
r07414d7 rf130d4 49 49 using namespace std; 50 50 51 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string_description) :52 Dialog::TQuery<const atom*>(_param, title, _description)51 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description) : 52 Dialog::TQuery<const atom*>(_param, _title, _description) 53 53 {} 54 54 -
src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp
r07414d7 rf130d4 44 44 #include "World.hpp" 45 45 46 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string_description) :47 Dialog::TQuery<std::vector<const atom *> >(_param, title, _description)46 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description) : 47 Dialog::TQuery<std::vector<const atom *> >(_param, _title, _description) 48 48 {} 49 49 -
src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string_description) :44 Dialog::TQuery<bool>(_param, title, _description)43 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<bool>(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp
r07414d7 rf130d4 19 19 class CommandLineDialog::EmptyCommandLineQuery : public Dialog::EmptyQuery { 20 20 public: 21 EmptyCommandLineQuery( std::string title, std::string_description = "");21 EmptyCommandLineQuery(const std::string &_title, const std::string &_description = ""); 22 22 virtual ~EmptyCommandLineQuery(); 23 23 virtual bool handle(); … … 26 26 class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> { 27 27 public: 28 IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string_description = "");28 IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description = ""); 29 29 virtual ~IntCommandLineQuery(); 30 30 virtual bool handle(); … … 33 33 class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > { 34 34 public: 35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string_description = "");35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description = ""); 36 36 virtual ~IntsCommandLineQuery(); 37 37 virtual bool handle(); … … 40 40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> { 41 41 public: 42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string_description = "");42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description = ""); 43 43 virtual ~UnsignedIntCommandLineQuery(); 44 44 virtual bool handle(); … … 47 47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > { 48 48 public: 49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string_description = "");49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description = ""); 50 50 virtual ~UnsignedIntsCommandLineQuery(); 51 51 virtual bool handle(); … … 54 54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> { 55 55 public: 56 BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string_description = "");56 BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description = ""); 57 57 virtual ~BooleanCommandLineQuery(); 58 58 virtual bool handle(); … … 61 61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> { 62 62 public: 63 DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string_description = "");63 DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description = ""); 64 64 virtual ~DoubleCommandLineQuery(); 65 65 virtual bool handle(); … … 68 68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > { 69 69 public: 70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string_description = "");70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description = ""); 71 71 virtual ~DoublesCommandLineQuery(); 72 72 virtual bool handle(); … … 75 75 class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> { 76 76 public: 77 StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string_description = "");77 StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description = ""); 78 78 virtual ~StringCommandLineQuery(); 79 79 virtual bool handle(); … … 82 82 class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > { 83 83 public: 84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string_description = "");84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description = ""); 85 85 virtual ~StringsCommandLineQuery(); 86 86 virtual bool handle(); … … 89 89 class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> { 90 90 public: 91 AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string_description = "");91 AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description = ""); 92 92 virtual ~AtomCommandLineQuery(); 93 93 virtual bool handle(); … … 96 96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > { 97 97 public: 98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string_description = "");98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description = ""); 99 99 virtual ~AtomsCommandLineQuery(); 100 100 virtual bool handle(); … … 103 103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> { 104 104 public: 105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string_description = "");105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description = ""); 106 106 virtual ~MoleculeCommandLineQuery(); 107 107 virtual bool handle(); … … 110 110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > { 111 111 public: 112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string_description = "");112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description = ""); 113 113 virtual ~MoleculesCommandLineQuery(); 114 114 virtual bool handle(); … … 117 117 class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> { 118 118 public: 119 VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string_description = "");119 VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description = ""); 120 120 virtual ~VectorCommandLineQuery(); 121 121 virtual bool handle(); … … 124 124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > { 125 125 public: 126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string_description = "");126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description = ""); 127 127 virtual ~VectorsCommandLineQuery(); 128 128 virtual bool handle(); … … 131 131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> { 132 132 public: 133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string_description = "");133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description = ""); 134 134 virtual ~RealSpaceMatrixCommandLineQuery(); 135 135 virtual bool handle(); … … 138 138 class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> { 139 139 public: 140 ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string_description = "");140 ElementCommandLineQuery(Parameter<const element *> &_param, const std::string &_title, const std::string &_description = ""); 141 141 virtual ~ElementCommandLineQuery(); 142 142 virtual bool handle(); … … 145 145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > { 146 146 public: 147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string_description = "");147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, const std::string &_title, const std::string &_description = ""); 148 148 virtual ~ElementsCommandLineQuery(); 149 149 virtual bool handle(); … … 152 152 class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> { 153 153 public: 154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string_description = "");154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description = ""); 155 155 virtual ~FileCommandLineQuery(); 156 156 virtual bool handle(); … … 159 159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > { 160 160 public: 161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string_description = "");161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, const std::string &_title, const std::string &_description = ""); 162 162 virtual ~FilesCommandLineQuery(); 163 163 virtual bool handle(); … … 166 166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> { 167 167 public: 168 RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string_description = "");168 RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description = ""); 169 169 virtual ~RandomNumberDistribution_ParametersCommandLineQuery(); 170 170 virtual bool handle(); -
src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp
r07414d7 rf130d4 42 42 43 43 44 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string_description) :45 Dialog::TQuery<double>(_param, title, _description)44 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description) : 45 Dialog::TQuery<double>(_param, _title, _description) 46 46 {} 47 47 -
src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::vector<double> >(_param, title, _description)43 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::vector<double> >(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
r07414d7 rf130d4 44 44 #include "World.hpp" 45 45 46 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, std::string title, std::string_description) :47 Dialog::TQuery<const element *>(_param, title, _description)46 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, const std::string &_title, const std::string &_description) : 47 Dialog::TQuery<const element *>(_param, _title, _description) 48 48 {} 49 49 -
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
r07414d7 rf130d4 44 44 #include "World.hpp" 45 45 46 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, std::string title, std::string_description) :47 Dialog::TQuery<std::vector<const element *> >(_param, title, _description)46 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, const std::string &_title, const std::string &_description) : 47 Dialog::TQuery<std::vector<const element *> >(_param, _title, _description) 48 48 {} 49 49 -
src/UIElements/CommandLineUI/Query/EmptyCommandLineQuery.cpp
r07414d7 rf130d4 42 42 #include "CodePatterns/Verbose.hpp" 43 43 44 CommandLineDialog::EmptyCommandLineQuery::EmptyCommandLineQuery( std::string title, std::string_description) :45 Dialog::EmptyQuery( title, _description)44 CommandLineDialog::EmptyCommandLineQuery::EmptyCommandLineQuery(const std::string &_title, const std::string &_description) : 45 Dialog::EmptyQuery(_title, _description) 46 46 {} 47 47 -
src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string_description) :44 Dialog::TQuery<boost::filesystem::path>(_param, title, _description)43 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<boost::filesystem::path>(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, title, _description)43 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string_description) :44 Dialog::TQuery<int>(_param, title, _description)43 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<int>(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::vector<int> >(_param, title, _description)43 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::vector<int> >(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp
r07414d7 rf130d4 44 44 #include "CodePatterns/Verbose.hpp" 45 45 46 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string_description) :47 Dialog::TQuery<const molecule *>(_param, title, _description)46 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description) : 47 Dialog::TQuery<const molecule *>(_param, _title, _description) 48 48 {} 49 49 -
src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp
r07414d7 rf130d4 45 45 #include "World.hpp" 46 46 47 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string_description) :48 Dialog::TQuery<std::vector<const molecule *> >(_param, title, _description)47 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description) : 48 Dialog::TQuery<std::vector<const molecule *> >(_param, _title, _description) 49 49 {} 50 50 -
src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp
r07414d7 rf130d4 47 47 #include "RandomNumbers/RandomNumberDistribution_Parameters.hpp" 48 48 49 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string_description) :50 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, title, _description)49 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description) : 50 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, _title, _description) 51 51 {} 52 52 -
src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp
r07414d7 rf130d4 43 43 #include "LinearAlgebra/RealSpaceMatrix.hpp" 44 44 45 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string_description) :46 Dialog::TQuery<RealSpaceMatrix>(_param, title, _description)45 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description) : 46 Dialog::TQuery<RealSpaceMatrix>(_param, _title, _description) 47 47 {} 48 48 -
src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::string>(_param, title, _description)43 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::string>(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::vector<std::string> >(_param, title, _description)43 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::vector<std::string> >(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string_description) :44 Dialog::TQuery<unsigned int>(_param, title, _description)43 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<unsigned int>(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp
r07414d7 rf130d4 41 41 #include "CodePatterns/Verbose.hpp" 42 42 43 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string_description) :44 Dialog::TQuery<std::vector<unsigned int> >(_param, title, _description)43 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description) : 44 Dialog::TQuery<std::vector<unsigned int> >(_param, _title, _description) 45 45 {} 46 46 -
src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp
r07414d7 rf130d4 45 45 #include "World.hpp" 46 46 47 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string_description) :48 Dialog::TQuery<Vector>(_param, title, _description)47 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description) : 48 Dialog::TQuery<Vector>(_param, _title, _description) 49 49 {} 50 50 -
src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp
r07414d7 rf130d4 45 45 #include "World.hpp" 46 46 47 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string_description) :48 Dialog::TQuery<std::vector<Vector> >(_param, title, _description)47 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description) : 48 Dialog::TQuery<std::vector<Vector> >(_param, _title, _description) 49 49 {} 50 50
Note:
See TracChangeset
for help on using the changeset viewer.