source: src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp@ 33e801

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
Last change on this file since 33e801 was 33e801, checked in by Frederik Heber <heber@…>, 10 years ago

Added ParameterPair (i.e. "key = value;") to allow other string output.

  • this will solve the problem of vectors of key-value-pairs not properly converted into a single string because of missing semicolon.
  • FIX: toCLIString used functions toPythonString if possible.
  • Property mode set to 100644
File size: 7.0 KB
Line 
1/*
2 * CommandLineQuery.hpp
3 *
4 * Created on: Nov 8, 2010
5 * Author: heber
6 */
7
8#ifndef COMMANDLINEQUERY_HPP_
9#define COMMANDLINEQUERY_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include "CommandLineUI/CommandLineDialog.hpp"
18
19class CommandLineDialog::EmptyCommandLineQuery : public Dialog::EmptyQuery {
20public:
21 EmptyCommandLineQuery(const std::string &_title, const std::string &_description = "");
22 virtual ~EmptyCommandLineQuery();
23 virtual bool handle();
24};
25
26class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> {
27public:
28 IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description = "");
29 virtual ~IntCommandLineQuery();
30 virtual bool handle();
31};
32
33class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > {
34public:
35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description = "");
36 virtual ~IntsCommandLineQuery();
37 virtual bool handle();
38};
39
40class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> {
41public:
42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description = "");
43 virtual ~UnsignedIntCommandLineQuery();
44 virtual bool handle();
45};
46
47class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > {
48public:
49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description = "");
50 virtual ~UnsignedIntsCommandLineQuery();
51 virtual bool handle();
52};
53
54class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> {
55public:
56 BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description = "");
57 virtual ~BooleanCommandLineQuery();
58 virtual bool handle();
59};
60
61class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> {
62public:
63 DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description = "");
64 virtual ~DoubleCommandLineQuery();
65 virtual bool handle();
66};
67
68class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > {
69public:
70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description = "");
71 virtual ~DoublesCommandLineQuery();
72 virtual bool handle();
73};
74
75class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> {
76public:
77 StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description = "");
78 virtual ~StringCommandLineQuery();
79 virtual bool handle();
80};
81
82class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > {
83public:
84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description = "");
85 virtual ~StringsCommandLineQuery();
86 virtual bool handle();
87};
88
89class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> {
90public:
91 AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description = "");
92 virtual ~AtomCommandLineQuery();
93 virtual bool handle();
94};
95
96class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > {
97public:
98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description = "");
99 virtual ~AtomsCommandLineQuery();
100 virtual bool handle();
101};
102
103class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> {
104public:
105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description = "");
106 virtual ~MoleculeCommandLineQuery();
107 virtual bool handle();
108};
109
110class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > {
111public:
112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description = "");
113 virtual ~MoleculesCommandLineQuery();
114 virtual bool handle();
115};
116
117class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> {
118public:
119 VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description = "");
120 virtual ~VectorCommandLineQuery();
121 virtual bool handle();
122};
123
124class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > {
125public:
126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description = "");
127 virtual ~VectorsCommandLineQuery();
128 virtual bool handle();
129};
130
131class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> {
132public:
133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description = "");
134 virtual ~RealSpaceMatrixCommandLineQuery();
135 virtual bool handle();
136};
137
138class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> {
139public:
140 ElementCommandLineQuery(Parameter<const element *> &_param, const std::string &_title, const std::string &_description = "");
141 virtual ~ElementCommandLineQuery();
142 virtual bool handle();
143};
144
145class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > {
146public:
147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, const std::string &_title, const std::string &_description = "");
148 virtual ~ElementsCommandLineQuery();
149 virtual bool handle();
150};
151
152class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> {
153public:
154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description = "");
155 virtual ~FileCommandLineQuery();
156 virtual bool handle();
157};
158
159class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
160public:
161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, const std::string &_title, const std::string &_description = "");
162 virtual ~FilesCommandLineQuery();
163 virtual bool handle();
164};
165
166class CommandLineDialog::KeyValuePairCommandLineQuery : public Dialog::TQuery<KeyValuePair> {
167public:
168 KeyValuePairCommandLineQuery(Parameter<KeyValuePair> &_param, const std::string &_title, const std::string &_description = "");
169 virtual ~KeyValuePairCommandLineQuery();
170 virtual bool handle();
171};
172
173class CommandLineDialog::KeyValuePairsCommandLineQuery : public Dialog::TQuery<std::vector<KeyValuePair> > {
174public:
175 KeyValuePairsCommandLineQuery(Parameter<std::vector<KeyValuePair> > &_param, const std::string &_title, const std::string &_description = "");
176 virtual ~KeyValuePairsCommandLineQuery();
177 virtual bool handle();
178};
179
180#endif /* COMMANDLINEQUERY_HPP_ */
Note: See TracBrowser for help on using the repository browser.