| [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 | 
 | 
|---|
 | 19 | class CommandLineDialog::EmptyCommandLineQuery : public Dialog::EmptyQuery {
 | 
|---|
 | 20 | public:
 | 
|---|
| [f130d4] | 21 |   EmptyCommandLineQuery(const std::string &_title, const std::string &_description = "");
 | 
|---|
| [87db7a] | 22 |   virtual ~EmptyCommandLineQuery();
 | 
|---|
 | 23 |   virtual bool handle();
 | 
|---|
 | 24 | };
 | 
|---|
 | 25 | 
 | 
|---|
| [1c55b8] | 26 | class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> {
 | 
|---|
| [87db7a] | 27 | public:
 | 
|---|
| [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] | 33 | class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > {
 | 
|---|
| [87db7a] | 34 | public:
 | 
|---|
| [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] | 40 | class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> {
 | 
|---|
| [838cd0] | 41 | public:
 | 
|---|
| [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] | 47 | class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > {
 | 
|---|
| [12948c] | 48 | public:
 | 
|---|
| [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] | 54 | class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> {
 | 
|---|
| [87db7a] | 55 | public:
 | 
|---|
| [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] | 61 | class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> {
 | 
|---|
| [87db7a] | 62 | public:
 | 
|---|
| [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] | 68 | class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > {
 | 
|---|
| [87db7a] | 69 | public:
 | 
|---|
| [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] | 75 | class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> {
 | 
|---|
| [87db7a] | 76 | public:
 | 
|---|
| [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] | 82 | class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > {
 | 
|---|
| [87db7a] | 83 | public:
 | 
|---|
| [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] | 89 | class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> {
 | 
|---|
| [87db7a] | 90 | public:
 | 
|---|
| [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] | 96 | class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > {
 | 
|---|
| [87db7a] | 97 | public:
 | 
|---|
| [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] | 103 | class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> {
 | 
|---|
| [87db7a] | 104 | public:
 | 
|---|
| [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] | 110 | class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > {
 | 
|---|
| [87db7a] | 111 | public:
 | 
|---|
| [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] | 117 | class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> {
 | 
|---|
| [87db7a] | 118 | public:
 | 
|---|
| [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] | 124 | class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > {
 | 
|---|
| [87db7a] | 125 | public:
 | 
|---|
| [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] | 131 | class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> {
 | 
|---|
| [87db7a] | 132 | public:
 | 
|---|
| [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] | 138 | class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> {
 | 
|---|
| [87db7a] | 139 | public:
 | 
|---|
| [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] | 145 | class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > {
 | 
|---|
| [87db7a] | 146 | public:
 | 
|---|
| [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] | 152 | class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> {
 | 
|---|
| [87db7a] | 153 | public:
 | 
|---|
| [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] | 159 | class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
 | 
|---|
| [2c5765] | 160 | public:
 | 
|---|
| [f130d4] | 161 |   FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, const std::string &_title, const std::string &_description = "");
 | 
|---|
| [2c5765] | 162 |   virtual ~FilesCommandLineQuery();
 | 
|---|
 | 163 |   virtual bool handle();
 | 
|---|
 | 164 | };
 | 
|---|
 | 165 | 
 | 
|---|
| [87db7a] | 166 | #endif /* COMMANDLINEQUERY_HPP_ */
 | 
|---|