BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sfidl-options.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef _SFIDL_OPTIONS_H_
3 #define _SFIDL_OPTIONS_H_
4 
5 #include <utility>
6 #include "sfidl-utils.hh"
7 
8 namespace Sfidl {
9 
10 class Factory;
11 class Parser;
12 class CodeGenerator;
13 
14 typedef std::vector< std::pair <String, bool> > OptionVector;
15 
16 struct Options {
17  CodeGenerator *codeGenerator;
18  String codeGeneratorName;
19  bool doHelp;
20  bool doExit;
21  String sfidlName;
22 
23  std::vector<String> includePath; // path to search for includes
24 
25  Options ();
26  bool parse (int *argc_p, char **argv_p[], const Parser& parser);
27  void printUsage ();
28 
29  static Options *the();
30 };
31 
32 };
33 #endif /* _SFIDL_OPTIONS_H_ */
Definition: sfidl-generator.hh:16
Definition: sfidl-options.hh:16
Definition: sfidl-parser.hh:231
std::string String