23 #include <boost/uuid/uuid.hpp>
24 #include <boost/uuid/uuid_generators.hpp>
30 class LIBPBD_API UUID :
public boost::uuids::uuid {
34 : boost::uuids::uuid (boost::uuids::random_generator()()) {}
35 UUID (std::string
const & str)
36 : boost::uuids::uuid (boost::uuids::string_generator()(str)) {}
38 explicit UUID (boost::uuids::uuid
const& u)
39 : boost::uuids::uuid(u)
42 operator boost::uuids::uuid() {
43 return static_cast<boost::uuids::uuid&
>(*this);
46 operator boost::uuids::uuid()
const {
47 return static_cast<boost::uuids::uuid const&
>(*this);
50 UUID& operator= (std::string
const & str);
53 operator bool()
const {
return !is_nil(); }
UUID(boost::uuids::uuid const &u)
UUID(std::string const &str)