Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Codecs.h
Go to the documentation of this file.
1 #ifndef QPID_AMQP_0_10_CODECS_H
2 #define QPID_AMQP_0_10_CODECS_H
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
26 #include "qpid/types/Variant.h"
27 #include "boost/shared_ptr.hpp"
28 
29 namespace qpid {
30 namespace framing {
31 class FieldTable;
32 class FieldValue;
33 }
34 namespace amqp_0_10 {
40 {
41  public:
43  static void QPID_COMMON_EXTERN encode(const ObjectType&, std::string&);
44  static void QPID_COMMON_EXTERN decode(const std::string&, ObjectType&);
45  static size_t QPID_COMMON_EXTERN encodedSize(const ObjectType&);
46  static const QPID_COMMON_EXTERN std::string contentType;
47  private:
48 };
49 
55 {
56  public:
58  static void QPID_COMMON_EXTERN encode(const ObjectType&, std::string&);
59  static void QPID_COMMON_EXTERN decode(const std::string&, ObjectType&);
60  static size_t QPID_COMMON_EXTERN encodedSize(const ObjectType&);
61  static const QPID_COMMON_EXTERN std::string contentType;
62  private:
63 };
64 
74 QPID_COMMON_EXTERN void translate(const qpid::types::Variant::Map& from, const std::string& efield, const qpid::types::Variant& evalue,
78 
79 QPID_COMMON_EXTERN void translate(const boost::shared_ptr<qpid::framing::FieldValue> from,
82  boost::shared_ptr<qpid::framing::FieldValue> to);
83 
84 }} // namespace qpid::amqp_0_10
85 
86 #endif
#define QPID_COMMON_EXTERN
std::map< std::string, Variant > Map
Definition: Variant.h:75
void encode(const qpid::types::Variant::Map &map, Message &message, const std::string &encoding=std::string())
Encodes a Variant::Map into a message.
static const std::string contentType
Definition: Codecs.h:61
Value that can appear in an AMQP field table.
Definition: FieldValue.h:62
Codec for encoding/decoding a map of Variants using the AMQP 0-10 map encoding.
Definition: Codecs.h:39
qpid::types::Variant::List ObjectType
Definition: Codecs.h:57
std::list< Variant > List
Definition: Variant.h:76
qpid::types::Variant::Map ObjectType
Definition: Codecs.h:42
Represents a value of variable type.
Definition: Variant.h:72
void translate(const qpid::types::Variant::Map &from, qpid::framing::FieldTable &to)
Codec for encoding/decoding a list of Variants using the AMQP 0-10 list encoding. ...
Definition: Codecs.h:54
A set of name-value pairs.
Definition: FieldTable.h:53
#define QPID_COMMON_CLASS_EXTERN
static const std::string contentType
Definition: Codecs.h:46
void decode(const Message &message, qpid::types::Variant::Map &map, const std::string &encoding=std::string())
Decodes message content into a Variant::Map.

Qpid C++ API Reference
Generated on Tue Aug 19 2014 for Qpid C++ Client API by doxygen 1.8.7