summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h12
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