diff options
Diffstat (limited to 'Swiften/Serializer/GenericPayloadSerializer.h')
| -rw-r--r-- | Swiften/Serializer/GenericPayloadSerializer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/Serializer/GenericPayloadSerializer.h b/Swiften/Serializer/GenericPayloadSerializer.h index cfe8c98..e964d80 100644 --- a/Swiften/Serializer/GenericPayloadSerializer.h +++ b/Swiften/Serializer/GenericPayloadSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/PayloadSerializer.h> | 12 | #include <Swiften/Serializer/PayloadSerializer.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | template<typename PAYLOAD_TYPE> | 15 | template<typename PAYLOAD_TYPE> |
| 15 | class GenericPayloadSerializer : public PayloadSerializer { | 16 | class SWIFTEN_API GenericPayloadSerializer : public PayloadSerializer { |
| 16 | public: | 17 | public: |
| 17 | virtual std::string serialize(boost::shared_ptr<Payload> element) const { | 18 | virtual std::string serialize(boost::shared_ptr<Payload> element) const { |
| 18 | return serializePayload(boost::dynamic_pointer_cast<PAYLOAD_TYPE>(element)); | 19 | return serializePayload(boost::dynamic_pointer_cast<PAYLOAD_TYPE>(element)); |
Swift