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
Subscription.h
Go to the documentation of this file.
1
#ifndef QMF_SUBSCRIPTION_H
2
#define QMF_SUBSCRIPTION_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
#include <
qmf/ImportExport.h
>
25
#include "
qmf/Handle.h
"
26
#include "
qpid/types/Variant.h
"
27
#include <string>
28
29
namespace
qmf {
30
31
#ifndef SWIG
32
template
<
class
>
class
PrivateImplRef
;
33
#endif
34
35
class
SubscriptionImpl;
36
class
Data;
37
38
class
QMF_CLASS_EXTERN
Subscription
:
public
qmf::Handle
<SubscriptionImpl> {
39
public
:
40
QMF_EXTERN
Subscription
(SubscriptionImpl* impl = 0);
41
QMF_EXTERN
Subscription(
const
Subscription&);
42
QMF_EXTERN
Subscription& operator=(
const
Subscription&);
43
QMF_EXTERN
~Subscription();
44
53
QMF_EXTERN
void
cancel();
54
60
QMF_EXTERN
bool
isActive()
const
;
61
68
QMF_EXTERN
void
lock();
69
QMF_EXTERN
void
unlock();
70
QMF_EXTERN
uint32_t
getDataCount()
const
;
71
QMF_EXTERN
Data
getData(
uint32_t
)
const
;
72
73
#ifndef SWIG
74
private
:
75
friend
class
qmf::PrivateImplRef<Subscription>;
76
friend
struct
SubscriptionImplAccess;
77
#endif
78
};
79
80
}
81
82
#endif
Qpid C++ API Reference
Generated on Fri Feb 22 2013 for Qpid C++ Client API by
1.8.3