- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineDialog.hpp
r163110 r37a67f 34 34 35 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 // specialized stuff for command line queries 58 // all placed into Query/CommandLineQuery.hpp 59 // !please adhere to alphabetical ordering! 60 class AtomCommandLineQuery; 61 class AtomsCommandLineQuery; 62 class BooleanCommandLineQuery; 63 class DoubleCommandLineQuery; 64 class DoublesCommandLineQuery; 65 class ElementCommandLineQuery; 66 class ElementsCommandLineQuery; 36 37 protected: 38 67 39 class EmptyCommandLineQuery; 68 class FileCommandLineQuery; 69 class FilesCommandLineQuery; 70 class IntCommandLineQuery; 71 class IntsCommandLineQuery; 72 class MoleculeCommandLineQuery; 73 class MoleculesCommandLineQuery; 74 class RealSpaceMatrixCommandLineQuery; 75 class StringCommandLineQuery; 76 class StringsCommandLineQuery; 77 class UnsignedIntCommandLineQuery; 78 class UnsignedIntsCommandLineQuery; 79 class VectorCommandLineQuery; 80 class VectorsCommandLineQuery; 81 class RandomNumberDistribution_ParametersCommandLineQuery; 40 41 /** With the following boost::preprocessor code we generate virtual function 42 * definitions and forward declarations for all desired query types in the 43 * CommandLineUI specialization of class Dialog. 44 */ 45 #include "UIElements/GlobalListOfParameterQueries.hpp" 46 #include "UIElements/Dialog_impl_pre.hpp" 47 48 #include <boost/preprocessor/facilities/empty.hpp> 49 50 // iterate over all parameter query types for query declarations 51 #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type 52 #define SUFFIX BOOST_PP_EMPTY() 53 #define BOOST_PP_LOCAL_MACRO(n) dialog_declaration(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, GLOBALLISTOFPARAMETERQUERIES_Type) 54 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1) 55 #include BOOST_PP_LOCAL_ITERATE() 56 #undef dialog_declaration 57 #undef SUFFIX 58 #endif 59 60 // iterate over all parameter query types for forward declarations 61 #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type 62 #define BOOST_PP_LOCAL_MACRO(n) forward_declaration(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, CommandLineQuery) 63 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1) 64 #include BOOST_PP_LOCAL_ITERATE() 65 #undef forward_declaration 66 #endif 67 68 #include "Dialog_impl_undef.hpp" 69 /* End of preprocessor code piece */ 70 82 71 }; 83 72
Note:
See TracChangeset
for help on using the changeset viewer.