source no added
This commit is contained in:
parent
c7d8eddf86
commit
d321a5d95e
2 changed files with 15 additions and 2 deletions
|
@ -23,3 +23,11 @@ inline Entity::State Entity::getState() const
|
||||||
{
|
{
|
||||||
return state_;
|
return state_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Entity::setSourceNo(int sourceNo) {
|
||||||
|
sourceNo_ = sourceNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Entity::getSourceNo() const {
|
||||||
|
return sourceNo_;
|
||||||
|
}
|
|
@ -12,15 +12,20 @@ class Entity
|
||||||
enum class State { NEW, UPDATE, DELETE, OK };
|
enum class State { NEW, UPDATE, DELETE, OK };
|
||||||
|
|
||||||
virtual ~Entity() = 0;
|
virtual ~Entity() = 0;
|
||||||
const boost::uuids::uuid& getUuid() const { return uuid_; };
|
|
||||||
void createUuid();
|
void createUuid();
|
||||||
void setUuidFromString(const std::string& uuidString);
|
void setUuidFromString(const std::string& uuidString);
|
||||||
virtual State getState() const;
|
|
||||||
void setState(State state) { state_ = state; }
|
void setState(State state) { state_ = state; }
|
||||||
|
void setSourceNo(int sourceNo);
|
||||||
|
|
||||||
|
const boost::uuids::uuid& getUuid() const { return uuid_; };
|
||||||
|
virtual State getState() const;
|
||||||
|
virtual int getSourceNo() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::uuids::uuid uuid_{};
|
boost::uuids::uuid uuid_{};
|
||||||
State state_{State::NEW};
|
State state_{State::NEW};
|
||||||
|
int sourceNo_{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ENTITY_H
|
#endif // ENTITY_H
|
Loading…
Reference in a new issue