From febb9c275b5247df596876e4eea7fa17b7ec45e7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Aug 2018 17:26:08 +0200 Subject: Add support for UUID generation --- libbutl/uuid-io.hxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libbutl/uuid-io.hxx (limited to 'libbutl/uuid-io.hxx') 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 + +#include +#include + +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&); +} -- cgit v1.1