#include "entity.h" #include #include #include Entity::~Entity() = default; void Entity::createUuid() { #if defined __linux__ static boost::uuids::random_generator generator{}; #elif defined __WIN32 static boost::uuids::random_generator_mt19937 generator{}; #endif uuid_ = generator(); } void Entity::setUuidFromString(const std::string& uuidString) { boost::uuids::string_generator generator{}; uuid_ = generator(uuidString); } Entity::State Entity::getState() const { return state_; } void Entity::setSourceNo(int sourceNo) { sourceNo_ = sourceNo; } int Entity::getSourceNo() const { return sourceNo_; }