aboutsummaryrefslogtreecommitdiff
path: root/libbutl/uuid-io.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-22 17:26:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-22 17:36:23 +0200
commitfebb9c275b5247df596876e4eea7fa17b7ec45e7 (patch)
tree214a192cc6b019fb25a659cfdb84601da74438bf /libbutl/uuid-io.hxx
parentf8fc81a5c9fcd986473797df9286c6c9fef683bf (diff)
Add support for UUID generation
Diffstat (limited to 'libbutl/uuid-io.hxx')
-rw-r--r--libbutl/uuid-io.hxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/libbutl/uuid-io.hxx b/libbutl/uuid-io.hxx
new file mode 100644
index 0000000..57de9f3
--- /dev/null
+++ b/libbutl/uuid-io.hxx
@@ -0,0 +1,23 @@
+// file : libbutl/uuid-io.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#pragma once
+
+#include <iosfwd>
+
+#include <libbutl/uuid.hxx>
+#include <libbutl/export.hxx>
+
+namespace butl
+{
+ // Insert lower case string representation.
+ //
+ LIBBUTL_SYMEXPORT std::ostream&
+ operator<< (std::ostream&, const uuid&);
+
+ // Extract string representation (lower or upper case).
+ //
+ LIBBUTL_SYMEXPORT std::istream&
+ operator>> (std::istream&, uuid&);
+}