8 #define DRIPLINE_API_EXPORTS 12 #include <boost/uuid/nil_generator.hpp> 13 #include <boost/uuid/random_generator.hpp> 14 #include <boost/uuid/string_generator.hpp> 21 static boost::uuids::random_generator t_gen;
28 return boost::uuids::nil_uuid();
33 static boost::uuids::string_generator t_gen;
39 return t_gen( a_id_str );
49 static boost::uuids::string_generator t_gen;
55 return t_gen( a_id_str );
uuid_t uuid_from_string(const std::string &a_id_str)
std::string string_from_uuid(const uuid_t &a_id)
Generates a string representation of the provided UUID.
boost::uuids::uuid uuid_t
Universally-unique-identifier type containing 16 hexadecimal characters.
std::string to_string(op_t an_op)
Gives the human-readable version of a message operation.
uuid_t generate_random_uuid()
Generates a UUID containing random numbers (RNG is a Mersenne Twister)
uuid_t generate_nil_uuid()
Generates a UUID containing all 0s.