diff options
Diffstat (limited to 'Swiften/Parser/PayloadParserFactoryCollection.h')
-rw-r--r-- | Swiften/Parser/PayloadParserFactoryCollection.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Swiften/Parser/PayloadParserFactoryCollection.h b/Swiften/Parser/PayloadParserFactoryCollection.h index c106940..cc0db5a 100644 --- a/Swiften/Parser/PayloadParserFactoryCollection.h +++ b/Swiften/Parser/PayloadParserFactoryCollection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -8,24 +8,25 @@ #include <vector> -#include <Swiften/Parser/AttributeMap.h> #include <Swiften/Base/API.h> +#include <Swiften/Parser/AttributeMap.h> namespace Swift { - class PayloadParserFactory; + class PayloadParserFactory; - class SWIFTEN_API PayloadParserFactoryCollection { - public: - PayloadParserFactoryCollection(); + class SWIFTEN_API PayloadParserFactoryCollection { + public: + PayloadParserFactoryCollection(); + virtual ~PayloadParserFactoryCollection(); - void addFactory(PayloadParserFactory* factory); - void removeFactory(PayloadParserFactory* factory); - void setDefaultFactory(PayloadParserFactory* factory); + void addFactory(PayloadParserFactory* factory); + void removeFactory(PayloadParserFactory* factory); + void setDefaultFactory(PayloadParserFactory* factory); - PayloadParserFactory* getPayloadParserFactory(const std::string& element, const std::string& ns, const AttributeMap& attributes); + PayloadParserFactory* getPayloadParserFactory(const std::string& element, const std::string& ns, const AttributeMap& attributes); - private: - std::vector<PayloadParserFactory*> factories_; - PayloadParserFactory* defaultFactory_; - }; + private: + std::vector<PayloadParserFactory*> factories_; + PayloadParserFactory* defaultFactory_; + }; } |