diff options
Diffstat (limited to 'Swiften/Serializer/GenericStanzaSerializer.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Serializer/GenericStanzaSerializer.h | 29 |
2 files changed, 0 insertions, 29 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Serializer/GenericStanzaSerializer.h b/Swiften/Serializer/GenericStanzaSerializer.h deleted file mode 100644 index c59f735..0000000 --- a/Swiften/Serializer/GenericStanzaSerializer.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef SWIFTEN_GENERICSTANZASERIALIZER_H -#define SWIFTEN_GENERICSTANZASERIALIZER_H - -#include "Swiften/Serializer/StanzaSerializer.h" - -namespace Swift { - template<typename STANZA_TYPE> - class GenericStanzaSerializer : public StanzaSerializer { - public: - GenericStanzaSerializer(const String& tag, PayloadSerializerCollection* payloadSerializers) : StanzaSerializer(tag, payloadSerializers) {} - - virtual bool canSerialize(boost::shared_ptr<Element> element) const { - return dynamic_cast<STANZA_TYPE*>(element.get()) != 0; - } - - virtual void setStanzaSpecificAttributes( - boost::shared_ptr<Element> stanza, - XMLElement& element) const { - setStanzaSpecificAttributesGeneric( - boost::dynamic_pointer_cast<STANZA_TYPE>(stanza), element); - } - - virtual void setStanzaSpecificAttributesGeneric( - boost::shared_ptr<STANZA_TYPE>, - XMLElement&) const = 0; - }; -} - -#endif |