diff options
Diffstat (limited to 'src/uscxml/UUID.cpp')
-rw-r--r-- | src/uscxml/UUID.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/uscxml/UUID.cpp b/src/uscxml/UUID.cpp new file mode 100644 index 0000000..eac4316 --- /dev/null +++ b/src/uscxml/UUID.cpp @@ -0,0 +1,14 @@ +#include "UUID.h" +#include <sstream> + +namespace uscxml { +boost::uuids::random_generator UUID::uuidGen; + +std::string UUID::getUUID() { + boost::uuids::uuid uuid = uuidGen(); + std::ostringstream os; + os << uuid; + return os.str(); +} + +}
\ No newline at end of file |