diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-01 13:50:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-01 15:02:14 +0300 |
commit | 2319d01e262b705716e19474865f555f3ca81a7d (patch) | |
tree | 15ffb5b3f998a2cc0def729d2f1f76f578d8d139 /bpkg/types-parsers.hxx | |
parent | 5fb0df6f63e02c141e8a0e5ad4543dea525df3fc (diff) |
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'bpkg/types-parsers.hxx')
-rw-r--r-- | bpkg/types-parsers.hxx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bpkg/types-parsers.hxx b/bpkg/types-parsers.hxx new file mode 100644 index 0000000..bddb425 --- /dev/null +++ b/bpkg/types-parsers.hxx @@ -0,0 +1,46 @@ +// file : bpkg/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 BPKG_TYPES_PARSERS_HXX +#define BPKG_TYPES_PARSERS_HXX + +#include <bpkg/types.hxx> +#include <bpkg/options-types.hxx> + +namespace bpkg +{ + 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<auth> + { + static void + parse (auth&, bool&, scanner&); + }; + } +} + +#endif // BPKG_TYPES_PARSERS_HXX |