22 #ifndef HYPERAPPHELPER_UNIQUE_H
23 #define HYPERAPPHELPER_UNIQUE_H
31 #include <boost/uuid/uuid.hpp>
32 #include <boost/uuid/uuid_generators.hpp>
33 #include <boost/uuid/uuid_io.hpp>
34 #include <boost/lexical_cast.hpp>
36 namespace Hypertable {
namespace HyperAppHelper {
45 boost::uuids::random_generator gen;
46 boost::uuids::uuid u(gen());
47 return boost::lexical_cast<
String>(u);
78 #endif // HYPERAPPHELPER_UNIQUE_H
std::string String
A String is simply a typedef to std::string.
String generate_guid()
Generates a new GUID.
void create_cell_unique(const TablePtr &table, const KeySpec &key, String &guid)
Inserts a unique value into a table.
Compatibility Macros for C/C++.
A String class based on std::string.
std::shared_ptr< Table > TablePtr