more work on entities
This commit is contained in:
parent
97e444c91c
commit
be9c951d02
4 changed files with 23 additions and 17 deletions
|
@ -8,14 +8,17 @@
|
|||
class Entity
|
||||
{
|
||||
public:
|
||||
//Entity();
|
||||
enum class State { NEW, UPDATED, READ };
|
||||
// Entity();
|
||||
virtual ~Entity() = 0;
|
||||
const boost::uuids::uuid& getUuid() const { return uuid; };
|
||||
const boost::uuids::uuid& getUuid() const { return uuid_; };
|
||||
void createUuid();
|
||||
void createUuidFromString(const std::string& uuidString);
|
||||
State getState();
|
||||
|
||||
private:
|
||||
boost::uuids::uuid uuid{};
|
||||
boost::uuids::uuid uuid_{};
|
||||
State state_{State::NEW};
|
||||
};
|
||||
|
||||
#endif // ENTITY_H
|
Loading…
Add table
Add a link
Reference in a new issue