Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
qmf/Subscription.h
Go to the documentation of this file.
00001 #ifndef QMF_SUBSCRIPTION_H
00002 #define QMF_SUBSCRIPTION_H
00003 /*
00004  *
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  * 
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  * 
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  *
00022  */
00023 
00024 #if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
00025 #  error "The API defined in this file has been DEPRECATED and will be removed in the future."
00026 #  error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
00027 #endif
00028 
00029 #include <qmf/ImportExport.h>
00030 #include "qmf/Handle.h"
00031 #include "qpid/types/Variant.h"
00032 #include <string>
00033 
00034 namespace qmf {
00035 
00036 #ifndef SWIG
00037     template <class> class PrivateImplRef;
00038 #endif
00039 
00040     class SubscriptionImpl;
00041     class Data;
00042 
00043     class QMF_CLASS_EXTERN Subscription : public qmf::Handle<SubscriptionImpl> {
00044     public:
00045         QMF_EXTERN Subscription(SubscriptionImpl* impl = 0);
00046         QMF_EXTERN Subscription(const Subscription&);
00047         QMF_EXTERN Subscription& operator=(const Subscription&);
00048         QMF_EXTERN ~Subscription();
00049 
00058         QMF_EXTERN void cancel();
00059 
00065         QMF_EXTERN bool isActive() const;
00066 
00073         QMF_EXTERN void lock();
00074         QMF_EXTERN void unlock();
00075         QMF_EXTERN uint32_t getDataCount() const;
00076         QMF_EXTERN Data getData(uint32_t) const;
00077 
00078 #ifndef SWIG
00079     private:
00080         friend class qmf::PrivateImplRef<Subscription>;
00081         friend struct SubscriptionImplAccess;
00082 #endif
00083     };
00084 
00085 }
00086 
00087 #endif

Qpid C++ API Reference
Generated on Wed Dec 30 2015 for Qpid C++ Client API by doxygen 1.7.6.1