Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qpid
amqp_0_10
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
25
#include "
qpid/CommonImportExport.h
"
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 {
39
class
QPID_COMMON_CLASS_EXTERN
MapCodec
40
{
41
public
:
42
typedef
qpid::types::Variant::Map
ObjectType
;
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
54
class
QPID_COMMON_CLASS_EXTERN
ListCodec
55
{
56
public
:
57
typedef
qpid::types::Variant::List
ObjectType
;
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
72
QPID_COMMON_EXTERN
void
translate
(
const
qpid::types::Variant::Map
& from,
73
qpid::framing::FieldTable
& to);
74
QPID_COMMON_EXTERN
void
translate
(
const
qpid::types::Variant::Map
& from,
const
std::string& efield,
const
qpid::types::Variant
& evalue,
75
qpid::framing::FieldTable
& to);
76
QPID_COMMON_EXTERN
void
translate
(
const
qpid::framing::FieldTable
& from,
77
qpid::types::Variant::Map
& to);
78
79
QPID_COMMON_EXTERN
void
translate
(
const
boost::shared_ptr<qpid::framing::FieldValue> from,
80
qpid::types::Variant
& to);
81
QPID_COMMON_EXTERN
void
translate
(
const
types::Variant
& from,
82
boost::shared_ptr<qpid::framing::FieldValue> to);
83
84
}}
// namespace qpid::amqp_0_10
85
86
#endif
Qpid C++ API Reference
Generated on Thu Aug 28 2014 for Qpid C++ Client API by
1.8.3.1