summaryrefslogtreecommitdiffstats
path: root/src/uscxml/UUID.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/UUID.cpp')
-rw-r--r--src/uscxml/UUID.cpp14
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