/* * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class PayloadParserFactoryCollection; template class SWIFTEN_API GenericStanzaParser : public StanzaParser { public: GenericStanzaParser(PayloadParserFactoryCollection* collection) : StanzaParser(collection) { stanza_ = std::make_shared(); } virtual std::shared_ptr getElement() const { return stanza_; } virtual std::shared_ptr getStanzaGeneric() const { return stanza_; } private: std::shared_ptr stanza_; }; }