diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-29 23:55:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-30 23:57:17 +0300 |
commit | 8f3d3956b1e837c726859eb8bbe19dad79c54a42 (patch) | |
tree | 81ded52db212b12c7f685165702cce90aa0233cf /mod/types-parsers.hxx | |
parent | ea60a6df471706a0eeb5ff1f774d69abe89e4bc9 (diff) |
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'mod/types-parsers.hxx')
-rw-r--r-- | mod/types-parsers.hxx | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/mod/types-parsers.hxx b/mod/types-parsers.hxx new file mode 100644 index 0000000..03c54fe --- /dev/null +++ b/mod/types-parsers.hxx @@ -0,0 +1,64 @@ +// file : mod/types-parsers.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// CLI parsers, included into the generated source files. +// + +#ifndef MOD_TYPES_PARSERS_HXX +#define MOD_TYPES_PARSERS_HXX + +#include <web/xhtml-fragment.hxx> + +#include <libbrep/types.hxx> +#include <libbrep/utility.hxx> + +#include <mod/options-types.hxx> + +namespace brep +{ + namespace cli + { + class scanner; + + template <typename T> + struct parser; + + template <> + struct parser<path> + { + static void + parse (path&, bool&, scanner&); + }; + + template <> + struct parser<dir_path> + { + static void + parse (dir_path&, bool&, scanner&); + }; + + template <> + struct parser<page_form> + { + static void + parse (page_form&, bool&, scanner&); + }; + + template <> + struct parser<page_menu> + { + static void + parse (page_menu&, bool&, scanner&); + }; + + template <> + struct parser<web::xhtml::fragment> + { + static void + parse (web::xhtml::fragment&, bool&, scanner&); + }; + } +} + +#endif // MOD_TYPES_PARSERS_HXX |