2018-07-05 16:29:43 +02:00
|
|
|
#ifndef ENTITY_H
|
|
|
|
#define ENTITY_H
|
|
|
|
|
2018-07-06 10:54:44 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <boost/uuid/uuid.hpp>
|
|
|
|
|
2018-07-05 16:29:43 +02:00
|
|
|
class Entity
|
|
|
|
{
|
2018-07-09 13:03:25 +02:00
|
|
|
public:
|
2018-07-05 16:29:43 +02:00
|
|
|
Entity();
|
2018-07-09 13:03:25 +02:00
|
|
|
virtual ~Entity() = 0;
|
|
|
|
const boost::uuids::uuid& getUuid() { return uuid; };
|
|
|
|
void createUuid();
|
|
|
|
void createUuidFromString(const std::string& uuid_string);
|
|
|
|
|
|
|
|
private:
|
|
|
|
boost::uuids::uuid uuid{};
|
2018-07-05 16:29:43 +02:00
|
|
|
};
|
|
|
|
|
2018-07-09 13:03:25 +02:00
|
|
|
#endif // ENTITY_H
|