Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp

    r37a67f rf130d4  
    2424};
    2525
    26   /** With the following boost::preprocessor code we generate forward declarations
    27    * of query class for all desired query types in the Qt specialization class of
    28    * Dialog.
    29    */
    30 #include "UIElements/GlobalListOfParameterQueries.hpp"
    31 #include "UIElements/Dialog_impl_pre.hpp"
     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};
    3232
    33   #include <boost/preprocessor/facilities/empty.hpp>
     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};
    3439
    35   // iterate over all parameter query types for forward declarations
    36   #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type
    37   #define BOOST_PP_LOCAL_MACRO(n) queryclass_definition(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, GLOBALLISTOFPARAMETERQUERIES_Type, CommandLine)
    38   #define BOOST_PP_LOCAL_LIMITS  (0, MAXPARAMETERTOKENS-1)
    39   #include BOOST_PP_LOCAL_ITERATE()
    40   #undef queryclass_definition
    41   #endif
     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};
    4246
    43 #include "Dialog_impl_undef.hpp"
    44   /* End of preprocessor code piece */
     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};
    4553
     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::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> {
     167public:
     168  RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description = "");
     169  virtual ~RandomNumberDistribution_ParametersCommandLineQuery();
     170  virtual bool handle();
     171};
    46172
    47173#endif /* COMMANDLINEQUERY_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.