summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/GenericElementParser.h')
m---------Swiften0
-rw-r--r--Swiften/Parser/GenericElementParser.h43
2 files changed, 0 insertions, 43 deletions
diff --git a/Swiften b/Swiften
new file mode 160000
+Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c
diff --git a/Swiften/Parser/GenericElementParser.h b/Swiften/Parser/GenericElementParser.h
deleted file mode 100644
index e1b9cf7..0000000
--- a/Swiften/Parser/GenericElementParser.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef SWIFTEN_GenericElementParser_H
-#define SWIFTEN_GenericElementParser_H
-
-#include <boost/shared_ptr.hpp>
-
-#include "Swiften/Parser/ElementParser.h"
-
-namespace Swift {
- class String;
- class PayloadParserFactoryCollection;
-
- template<typename ElementType>
- class GenericElementParser : public ElementParser {
- public:
- GenericElementParser() {
- stanza_ = boost::shared_ptr<ElementType>(new ElementType());
- }
-
- virtual boost::shared_ptr<Element> getElement() const {
- return stanza_;
- }
-
- protected:
- virtual boost::shared_ptr<ElementType> getElementGeneric() const {
- return stanza_;
- }
-
- private:
- virtual void handleStartElement(const String&, const String&, const AttributeMap&) {
- }
-
- virtual void handleEndElement(const String&, const String&) {
- }
-
- virtual void handleCharacterData(const String&) {
- }
-
- private:
- boost::shared_ptr<ElementType> stanza_;
- };
-}
-
-#endif