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
qmf
Data.h
Go to the documentation of this file.
1
#ifndef QMF_DATA_H
2
#define QMF_DATA_H
3
/*
4
*
5
* Licensed to the Apache Software Foundation (ASF) under one
6
* or more contributor license agreements. See the NOTICE file
7
* distributed with this work for additional information
8
* regarding copyright ownership. The ASF licenses this file
9
* to you under the Apache License, Version 2.0 (the
10
* "License"); you may not use this file except in compliance
11
* with the License. You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing,
16
* software distributed under the License is distributed on an
17
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
* KIND, either express or implied. See the License for the
19
* specific language governing permissions and limitations
20
* under the License.
21
*
22
*/
23
24
#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
25
# error "The API defined in this file has been DEPRECATED and will be removed in the future."
26
# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
27
#endif
28
29
#include <
qmf/ImportExport.h
>
30
#include "
qmf/Handle.h
"
31
#include "
qmf/exceptions.h
"
32
#include "
qpid/types/Variant.h
"
33
#include <string>
34
35
namespace
qmf {
36
37
#ifndef SWIG
38
template
<
class
>
class
PrivateImplRef;
39
#endif
40
41
class
DataImpl;
42
class
Schema;
43
class
SchemaId;
44
class
DataAddr;
45
class
Agent;
46
47
class
QMF_CLASS_EXTERN
Data
:
public
qmf::Handle
<DataImpl> {
48
public
:
49
QMF_EXTERN
Data
(DataImpl* impl = 0);
50
QMF_EXTERN
Data(
const
Data&);
51
QMF_EXTERN
Data& operator=(
const
Data&);
52
QMF_EXTERN
~Data();
53
54
QMF_EXTERN
Data(
const
Schema
&);
55
QMF_EXTERN
void
setAddr(
const
DataAddr
&);
56
QMF_EXTERN
void
setProperty(
const
std::string&,
const
qpid::types::Variant
&);
57
QMF_EXTERN
void
overwriteProperties(
const
qpid::types::Variant::Map
&);
58
QMF_EXTERN
bool
hasSchema()
const
;
59
QMF_EXTERN
bool
hasAddr()
const
;
60
QMF_EXTERN
const
SchemaId
& getSchemaId()
const
;
61
QMF_EXTERN
const
DataAddr
& getAddr()
const
;
62
QMF_EXTERN
const
qpid::types::Variant
& getProperty(
const
std::string&)
const
;
63
QMF_EXTERN
const
qpid::types::Variant::Map
& getProperties()
const
;
64
QMF_EXTERN
bool
hasAgent()
const
;
65
QMF_EXTERN
const
Agent
& getAgent()
const
;
66
67
#ifndef SWIG
68
private
:
69
friend
class
qmf::PrivateImplRef
<Data>;
70
friend
struct
DataImplAccess;
71
#endif
72
};
73
74
}
75
76
#endif
Qpid C++ API Reference
Generated on Mon Nov 10 2014 for Qpid C++ Client API by
1.8.3.1