diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-13 09:50:10 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-13 09:50:10 +0100 |
commit | 9df186180f25313d2182ef7a0bb807875888892c (patch) | |
tree | 723d667aef52ef4e57ea252bb780145f651490aa /include/class.h | |
parent | 01fa31d24d6669ee30ccb897a0a7f438bcbe59f0 (diff) |
added serializable class (but not yet implemented it)
Diffstat (limited to 'include/class.h')
-rw-r--r-- | include/class.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/class.h b/include/class.h index d1afab2..bb05fdd 100644 --- a/include/class.h +++ b/include/class.h @@ -204,9 +204,19 @@ private: */ virtual bool traversable() const override { - // check if the templated class overrides from the base + // check if the templated class overrides from the Traversable class return std::is_base_of<Traversable,T>::value; } + + /** + * Is this a serializable class? + * @return bool + */ + virtual bool serializable() const override + { + // check if the templated class overrides from the Serializable class + return std::is_base_of<Serializable,T>::value; + } /** * Compare two objects |