uuid handling improved
This commit is contained in:
parent
7a6c664014
commit
74b7f5f57f
2 changed files with 24 additions and 8 deletions
|
@ -7,12 +7,15 @@
|
|||
|
||||
class Entity
|
||||
{
|
||||
public:
|
||||
public:
|
||||
Entity();
|
||||
~Entity();
|
||||
const boost::uuids::uuid& getUuid() {return uuid;};
|
||||
private:
|
||||
boost::uuids::uuid uuid;
|
||||
virtual ~Entity() = 0;
|
||||
const boost::uuids::uuid& getUuid() { return uuid; };
|
||||
void createUuid();
|
||||
void createUuidFromString(const std::string& uuid_string);
|
||||
|
||||
private:
|
||||
boost::uuids::uuid uuid{};
|
||||
};
|
||||
|
||||
#endif //ENTITY_H
|
||||
#endif // ENTITY_H
|
Loading…
Add table
Add a link
Reference in a new issue