kima2/src/core/entity.h

17 lines
295 B
C
Raw Normal View History

2018-07-05 16:29:43 +02:00
#ifndef ENTITY_H
#define ENTITY_H
class Entity
{
2019-10-07 14:08:01 +02:00
public:
2018-07-12 12:18:51 +02:00
enum class State { NEW, UPDATE, DELETE, OK };
2019-10-07 10:51:13 +02:00
virtual ~Entity() = default;
2018-07-11 15:59:08 +02:00
void setState(State state) { state_ = state; }
2018-07-13 13:05:36 +02:00
virtual State getState() const;
2018-07-30 14:43:02 +02:00
2019-10-07 14:08:01 +02:00
private:
2018-07-10 12:51:03 +02:00
State state_{State::NEW};
2018-07-05 16:29:43 +02:00
};
2019-10-04 15:22:15 +02:00
#endif // ENTITY_H