summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-04-08 09:47:21 +0000
committerGordon Sim <gsim@apache.org>2010-04-08 09:47:21 +0000
commit1102cd63f46516cd5b8c46d17567dcd4669adf0a (patch)
tree14ad106973460fd9da5d074e2ca8eef47b96a938 /qpid/cpp/include
parent6c91609a8b9e6bf768a698afb1ea5ca380dcf361 (diff)
downloadqpid-python-1102cd63f46516cd5b8c46d17567dcd4669adf0a.tar.gz
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@931851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/amqp_0_10/Codecs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/cpp/include/qpid/amqp_0_10/Codecs.h b/qpid/cpp/include/qpid/amqp_0_10/Codecs.h
index 78b0aa671b..62370a0e5e 100644
--- a/qpid/cpp/include/qpid/amqp_0_10/Codecs.h
+++ b/qpid/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:
};