aboutsummaryrefslogtreecommitdiff
path: root/brep/types
diff options
context:
space:
mode:
Diffstat (limited to 'brep/types')
-rw-r--r--brep/types60
1 files changed, 60 insertions, 0 deletions
diff --git a/brep/types b/brep/types
new file mode 100644
index 0000000..d3b7b2d
--- /dev/null
+++ b/brep/types
@@ -0,0 +1,60 @@
+// file : brep/types -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BREP_TYPES
+#define BREP_TYPES
+
+#include <vector>
+#include <string>
+#include <memory> // unique_ptr, weak_ptr, shared_ptr
+#include <cstddef> // size_t
+#include <cstdint> // uint{8,16,32,64}_t
+
+#include <odb/lazy-ptr.hxx>
+
+#include <butl/path>
+#include <butl/path-io>
+#include <butl/optional>
+#include <butl/timestamp>
+
+namespace brep
+{
+ // Commonly-used types
+ //
+ using std::uint8_t;
+ using std::uint16_t;
+ using std::uint32_t;
+ using std::uint64_t;
+ using std::size_t;
+ using std::vector;
+ using std::string;
+
+ using strings = vector<string>;
+
+ using butl::optional;
+ using butl::nullopt;
+
+ // Smart pointers
+ //
+ using std::unique_ptr;
+
+ using std::shared_ptr;
+ using std::weak_ptr;
+
+ using odb::lazy_shared_ptr;
+ using odb::lazy_weak_ptr;
+
+ // <butl/path>
+ //
+ using butl::path;
+ using butl::dir_path;
+ using butl::invalid_path;
+
+ // <butl/timestamp>
+ //
+ using butl::timestamp;
+ using butl::timestamp_nonexistent;
+}
+
+#endif // BREP_TYPES