From 84a68ccf26a50d5a20a6d8542e7d5472531333dc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Sep 2015 13:41:56 +0200 Subject: Add common types header --- bpkg/bpkg.cxx | 1 + bpkg/diagnostics | 2 ++ bpkg/types | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 bpkg/types (limited to 'bpkg') diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 3492705..d95d005 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -5,6 +5,7 @@ #include #include +#include #include using namespace std; diff --git a/bpkg/diagnostics b/bpkg/diagnostics index 94cb0ba..ef7b24c 100644 --- a/bpkg/diagnostics +++ b/bpkg/diagnostics @@ -13,6 +13,8 @@ #include #include +#include + namespace bpkg { // Throw this exception to terminate the process. The handler should diff --git a/bpkg/types b/bpkg/types new file mode 100644 index 0000000..d66f9fb --- /dev/null +++ b/bpkg/types @@ -0,0 +1,32 @@ +// file : bpkg/types -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_TYPES +#define BPKG_TYPES + +#include +#include + +#include +#include + +namespace bpkg +{ + // Commonly-used types. + // + using strings = std::vector; + using cstrings = std::vector; + + // + // + using butl::path; + using butl::dir_path; + using butl::basic_path; + using butl::invalid_path; + + using paths = std::vector; + using dir_paths = std::vector; +} + +#endif // BPKG_TYPES -- cgit v1.1