Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
qmf/Data.h
Go to the documentation of this file.
00001 #ifndef QMF_DATA_H
00002 #define QMF_DATA_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 "qmf/exceptions.h"
00032 #include "qpid/types/Variant.h"
00033 #include <string>
00034 
00035 namespace qmf {
00036 
00037 #ifndef SWIG
00038     template <class> class PrivateImplRef;
00039 #endif
00040 
00041     class DataImpl;
00042     class Schema;
00043     class SchemaId;
00044     class DataAddr;
00045     class Agent;
00046 
00047     class QMF_CLASS_EXTERN Data : public qmf::Handle<DataImpl> {
00048     public:
00049         QMF_EXTERN Data(DataImpl* impl = 0);
00050         QMF_EXTERN Data(const Data&);
00051         QMF_EXTERN Data& operator=(const Data&);
00052         QMF_EXTERN ~Data();
00053 
00054         QMF_EXTERN Data(const Schema&);
00055         QMF_EXTERN void setAddr(const DataAddr&);
00056         QMF_EXTERN void setProperty(const std::string&, const qpid::types::Variant&);
00057         QMF_EXTERN void overwriteProperties(const qpid::types::Variant::Map&);
00058         QMF_EXTERN bool hasSchema() const;
00059         QMF_EXTERN bool hasAddr() const;
00060         QMF_EXTERN const SchemaId& getSchemaId() const;
00061         QMF_EXTERN const DataAddr& getAddr() const;
00062         QMF_EXTERN const qpid::types::Variant& getProperty(const std::string&) const;
00063         QMF_EXTERN const qpid::types::Variant::Map& getProperties() const;
00064         QMF_EXTERN bool hasAgent() const;
00065         QMF_EXTERN const Agent& getAgent() const;
00066 
00067 #ifndef SWIG
00068     private:
00069         friend class qmf::PrivateImplRef<Data>;
00070         friend struct DataImplAccess;
00071 #endif
00072     };
00073 
00074 }
00075 
00076 #endif

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