From be01dfd2d74634abf3387e8eb363d2c90b31cf0d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 8 Apr 2010 09:47:21 +0000 Subject: QPID-664: set content-type on encoded messages, removed some duplication and added in a typedef to codecs that may be useful git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931851 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/amqp_0_10/Codecs.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpp/include') diff --git a/cpp/include/qpid/amqp_0_10/Codecs.h b/cpp/include/qpid/amqp_0_10/Codecs.h index 78b0aa671b..62370a0e5e 100644 --- a/cpp/include/qpid/amqp_0_10/Codecs.h +++ b/cpp/include/qpid/amqp_0_10/Codecs.h @@ -37,8 +37,9 @@ namespace amqp_0_10 { class QPID_COMMON_EXTERN MapCodec { public: - static void encode(const qpid::types::Variant::Map&, std::string&); - static void decode(const std::string&, qpid::types::Variant::Map&); + typedef qpid::types::Variant::Map ObjectType; + static void encode(const ObjectType&, std::string&); + static void decode(const std::string&, ObjectType&); static const std::string contentType; private: }; @@ -50,8 +51,9 @@ class QPID_COMMON_EXTERN MapCodec class QPID_COMMON_EXTERN ListCodec { public: - static void encode(const qpid::types::Variant::List&, std::string&); - static void decode(const std::string&, qpid::types::Variant::List&); + typedef qpid::types::Variant::List ObjectType; + static void encode(const ObjectType&, std::string&); + static void decode(const std::string&, ObjectType&); static const std::string contentType; private: }; -- cgit v1.2.1