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
RevLine 
[87db7a]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
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[87db7a]17#include "CommandLineUI/CommandLineDialog.hpp"
18
19class CommandLineDialog::EmptyCommandLineQuery : public Dialog::EmptyQuery {
20public:
[f130d4]21 EmptyCommandLineQuery(const std::string &_title, const std::string &_description = "");
[87db7a]22 virtual ~EmptyCommandLineQuery();
23 virtual bool handle();
24};
25
[1c55b8]26class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> {
[87db7a]27public:
[f130d4]28 IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]29 virtual ~IntCommandLineQuery();
30 virtual bool handle();
31};
32
[1c55b8]33class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > {
[87db7a]34public:
[f130d4]35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]36 virtual ~IntsCommandLineQuery();
37 virtual bool handle();
38};
39
[1c55b8]40class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> {
[838cd0]41public:
[f130d4]42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description = "");
[838cd0]43 virtual ~UnsignedIntCommandLineQuery();
44 virtual bool handle();
45};
46
[1c55b8]47class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > {
[12948c]48public:
[f130d4]49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description = "");
[12948c]50 virtual ~UnsignedIntsCommandLineQuery();
51 virtual bool handle();
52};
53
[1c55b8]54class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> {
[87db7a]55public:
[f130d4]56 BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]57 virtual ~BooleanCommandLineQuery();
58 virtual bool handle();
59};
60
[1c55b8]61class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> {
[87db7a]62public:
[f130d4]63 DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]64 virtual ~DoubleCommandLineQuery();
65 virtual bool handle();
66};
67
[1c55b8]68class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > {
[87db7a]69public:
[f130d4]70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]71 virtual ~DoublesCommandLineQuery();
72 virtual bool handle();
73};
74
[1c55b8]75class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> {
[87db7a]76public:
[f130d4]77 StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]78 virtual ~StringCommandLineQuery();
79 virtual bool handle();
80};
81
[1c55b8]82class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > {
[87db7a]83public:
[f130d4]84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]85 virtual ~StringsCommandLineQuery();
86 virtual bool handle();
87};
88
[1c55b8]89class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> {
[87db7a]90public:
[f130d4]91 AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]92 virtual ~AtomCommandLineQuery();
93 virtual bool handle();
94};
95
[1c55b8]96class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > {
[87db7a]97public:
[f130d4]98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]99 virtual ~AtomsCommandLineQuery();
100 virtual bool handle();
101};
102
[1c55b8]103class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> {
[87db7a]104public:
[f130d4]105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]106 virtual ~MoleculeCommandLineQuery();
107 virtual bool handle();
108};
109
[1c55b8]110class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > {
[87db7a]111public:
[f130d4]112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]113 virtual ~MoleculesCommandLineQuery();
114 virtual bool handle();
115};
116
[1c55b8]117class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> {
[87db7a]118public:
[f130d4]119 VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]120 virtual ~VectorCommandLineQuery();
121 virtual bool handle();
122};
123
[1c55b8]124class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > {
[87db7a]125public:
[f130d4]126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]127 virtual ~VectorsCommandLineQuery();
128 virtual bool handle();
129};
130
[1c55b8]131class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> {
[87db7a]132public:
[f130d4]133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description = "");
[7d9416]134 virtual ~RealSpaceMatrixCommandLineQuery();
[87db7a]135 virtual bool handle();
136};
137
[1c55b8]138class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> {
[87db7a]139public:
[f130d4]140 ElementCommandLineQuery(Parameter<const element *> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]141 virtual ~ElementCommandLineQuery();
142 virtual bool handle();
143};
144
[1c55b8]145class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > {
[87db7a]146public:
[f130d4]147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, const std::string &_title, const std::string &_description = "");
[87db7a]148 virtual ~ElementsCommandLineQuery();
149 virtual bool handle();
150};
151
[1c55b8]152class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> {
[87db7a]153public:
[f130d4]154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description = "");
[87db7a]155 virtual ~FileCommandLineQuery();
156 virtual bool handle();
157};
158
[1c55b8]159class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
[2c5765]160public:
[f130d4]161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, const std::string &_title, const std::string &_description = "");
[2c5765]162 virtual ~FilesCommandLineQuery();
163 virtual bool handle();
164};
165
[33e801]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
[87db7a]180#endif /* COMMANDLINEQUERY_HPP_ */
Note: See TracBrowser for help on using the repository browser.