diff options
author | Dirk Huss <dirk_huss@mentor.com> | 2016-02-08 18:31:09 +0100 |
---|---|---|
committer | Dirk Huss <dirk_huss@mentor.com> | 2016-02-08 18:31:09 +0100 |
commit | 274ad1873235b333e1872ac98e7b382553fc7c8f (patch) | |
tree | 0d534911871506fc2714bb71eb3627dd4e2b27b4 /include/CommonAPI/Enumeration.hpp | |
parent | 77d9cdaf6acee03a1e360e0e1a3cd0b01a95b407 (diff) | |
download | genivi-common-api-runtime-274ad1873235b333e1872ac98e7b382553fc7c8f.tar.gz |
CommonAPI 3.1.6
Diffstat (limited to 'include/CommonAPI/Enumeration.hpp')
-rw-r--r-- | include/CommonAPI/Enumeration.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/CommonAPI/Enumeration.hpp b/include/CommonAPI/Enumeration.hpp index 15b4748..2f241e7 100644 --- a/include/CommonAPI/Enumeration.hpp +++ b/include/CommonAPI/Enumeration.hpp @@ -15,6 +15,8 @@ struct Enumeration { value_(_value) { } + virtual ~Enumeration() {} + inline Enumeration &operator=(const Base_ &_value) { value_ = _value; return (*this); @@ -48,6 +50,8 @@ struct Enumeration { return (value_ >= _other.value_); } + virtual bool validate() const = 0; + Base_ value_; }; |