diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-01 13:41:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-01 13:41:56 +0200 |
commit | 84a68ccf26a50d5a20a6d8542e7d5472531333dc (patch) | |
tree | 3ceec9b290a6194f5583e7251d435d18bdb37863 /bpkg/types | |
parent | 42e1843a5f42455a8a5438551e363ee989483d64 (diff) |
Add common types header
Diffstat (limited to 'bpkg/types')
-rw-r--r-- | bpkg/types | 32 |
1 files changed, 32 insertions, 0 deletions
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 <vector> +#include <string> + +#include <butl/path> +#include <butl/path-io> + +namespace bpkg +{ + // Commonly-used types. + // + using strings = std::vector<std::string>; + using cstrings = std::vector<const char*>; + + // <butl/path> + // + using butl::path; + using butl::dir_path; + using butl::basic_path; + using butl::invalid_path; + + using paths = std::vector<path>; + using dir_paths = std::vector<dir_path>; +} + +#endif // BPKG_TYPES |