summaryrefslogtreecommitdiff
path: root/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
commitbe01dfd2d74634abf3387e8eb363d2c90b31cf0d (patch)
treeac52cb93a32614bad0134f79b093cd193f7f6d8c /cpp/include
parent1c949f8f54d3ede6b52fcfa63f702f9f154f8655 (diff)
downloadqpid-python-be01dfd2d74634abf3387e8eb363d2c90b31cf0d.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/qpid@931851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/amqp_0_10/Codecs.h10
1 files changed, 6 insertions, 4 deletions
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:
};