Qpid Management Framework  0.24
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 #include <qmf/ImportExport.h>
25 #include "qmf/Handle.h"
26 #include "qpid/types/Uuid.h"
27 #include "qpid/types/Variant.h"
28 #include "qmf/SchemaTypes.h"
29 #include <string>
30 
31 namespace qmf {
32 
33 #ifndef SWIG
34  template <class> class PrivateImplRef;
35 #endif
36 
37  class SchemaPropertyImpl;
38 
39  class QMF_CLASS_EXTERN SchemaProperty : public Handle<SchemaPropertyImpl> {
40  public:
41  QMF_EXTERN SchemaProperty(SchemaPropertyImpl* impl = 0);
42  QMF_EXTERN SchemaProperty(const SchemaProperty&);
43  QMF_EXTERN SchemaProperty& operator=(const SchemaProperty&);
44  QMF_EXTERN ~SchemaProperty();
45 
46  QMF_EXTERN SchemaProperty(const std::string&, int, const std::string& o="");
47 
48  QMF_EXTERN void setAccess(int);
49  QMF_EXTERN void setIndex(bool);
50  QMF_EXTERN void setOptional(bool);
51  QMF_EXTERN void setUnit(const std::string&);
52  QMF_EXTERN void setDesc(const std::string&);
53  QMF_EXTERN void setSubtype(const std::string&);
54  QMF_EXTERN void setDirection(int);
55 
56  QMF_EXTERN const std::string& getName() const;
57  QMF_EXTERN int getType() const;
58  QMF_EXTERN int getAccess() const;
59  QMF_EXTERN bool isIndex() const;
60  QMF_EXTERN bool isOptional() const;
61  QMF_EXTERN const std::string& getUnit() const;
62  QMF_EXTERN const std::string& getDesc() const;
63  QMF_EXTERN const std::string& getSubtype() const;
64  QMF_EXTERN int getDirection() const;
65 
66 #ifndef SWIG
67  private:
68  friend class qmf::PrivateImplRef<SchemaProperty>;
69  friend struct SchemaPropertyImplAccess;
70 #endif
71  };
72 
73 }
74 
75 #endif