Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
SchemaProperty.h
Go to the documentation of this file.
1 #ifndef QMF_SCHEMA_PROPERTY_H
2 #define QMF_SCHEMA_PROPERTY_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 "qpid/types/Uuid.h"
32 #include "qpid/types/Variant.h"
33 #include "qmf/SchemaTypes.h"
34 #include <string>
35 
36 namespace qmf {
37 
38 #ifndef SWIG
39  template <class> class PrivateImplRef;
40 #endif
41 
42  class SchemaPropertyImpl;
43 
44  class QMF_CLASS_EXTERN SchemaProperty : public Handle<SchemaPropertyImpl> {
45  public:
46  QMF_EXTERN SchemaProperty(SchemaPropertyImpl* impl = 0);
47  QMF_EXTERN SchemaProperty(const SchemaProperty&);
48  QMF_EXTERN SchemaProperty& operator=(const SchemaProperty&);
49  QMF_EXTERN ~SchemaProperty();
50 
51  QMF_EXTERN SchemaProperty(const std::string&, int, const std::string& o="");
52 
53  QMF_EXTERN void setAccess(int);
54  QMF_EXTERN void setIndex(bool);
55  QMF_EXTERN void setOptional(bool);
56  QMF_EXTERN void setUnit(const std::string&);
57  QMF_EXTERN void setDesc(const std::string&);
58  QMF_EXTERN void setSubtype(const std::string&);
59  QMF_EXTERN void setDirection(int);
60 
61  QMF_EXTERN const std::string& getName() const;
62  QMF_EXTERN int getType() const;
63  QMF_EXTERN int getAccess() const;
64  QMF_EXTERN bool isIndex() const;
65  QMF_EXTERN bool isOptional() const;
66  QMF_EXTERN const std::string& getUnit() const;
67  QMF_EXTERN const std::string& getDesc() const;
68  QMF_EXTERN const std::string& getSubtype() const;
69  QMF_EXTERN int getDirection() const;
70 
71 #ifndef SWIG
72  private:
73  friend class qmf::PrivateImplRef<SchemaProperty>;
74  friend struct SchemaPropertyImplAccess;
75 #endif
76  };
77 
78 }
79 
80 #endif
#define QMF_EXTERN
Definition: ImportExport.h:30
A handle is like a pointer: refers to an underlying implementation object.
Definition: Handle.h:43
#define QMF_CLASS_EXTERN
Definition: ImportExport.h:31

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5