1 2 3 4 5 6 7 8 9 10 11 12 13 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(); } }