diff options
Diffstat (limited to 'Swiften/Serializer/GenericElementSerializer.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Serializer/GenericElementSerializer.h | 18 |
2 files changed, 0 insertions, 18 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Serializer/GenericElementSerializer.h b/Swiften/Serializer/GenericElementSerializer.h deleted file mode 100644 index 7ccecb2..0000000 --- a/Swiften/Serializer/GenericElementSerializer.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef SWIFTEN_GenericElementSerializer_H -#define SWIFTEN_GenericElementSerializer_H - -#include "Swiften/Serializer/ElementSerializer.h" - -namespace Swift { - template<typename T> - class GenericElementSerializer : public ElementSerializer { - public: - virtual String serialize(boost::shared_ptr<Element> element) const = 0; - - virtual bool canSerialize(boost::shared_ptr<Element> element) const { - return dynamic_cast<T*>(element.get()) != 0; - } - }; -} - -#endif |