Qpid Management Framework  0.22
qmf/SchemaProperty.h
Go to the documentation of this file.
00001 #ifndef QMF_SCHEMA_PROPERTY_H
00002 #define QMF_SCHEMA_PROPERTY_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 #include <qmf/ImportExport.h>
00025 #include "qmf/Handle.h"
00026 #include "qpid/types/Uuid.h"
00027 #include "qpid/types/Variant.h"
00028 #include "qmf/SchemaTypes.h"
00029 #include <string>
00030 
00031 namespace qmf {
00032 
00033 #ifndef SWIG
00034     template <class> class PrivateImplRef;
00035 #endif
00036 
00037     class SchemaPropertyImpl;
00038 
00039     class QMF_CLASS_EXTERN SchemaProperty : public Handle<SchemaPropertyImpl> {
00040     public:
00041         QMF_EXTERN SchemaProperty(SchemaPropertyImpl* impl = 0);
00042         QMF_EXTERN SchemaProperty(const SchemaProperty&);
00043         QMF_EXTERN SchemaProperty& operator=(const SchemaProperty&);
00044         QMF_EXTERN ~SchemaProperty();
00045 
00046         QMF_EXTERN SchemaProperty(const std::string&, int, const std::string& o="");
00047 
00048         QMF_EXTERN void setAccess(int);
00049         QMF_EXTERN void setIndex(bool);
00050         QMF_EXTERN void setOptional(bool);
00051         QMF_EXTERN void setUnit(const std::string&);
00052         QMF_EXTERN void setDesc(const std::string&);
00053         QMF_EXTERN void setSubtype(const std::string&);
00054         QMF_EXTERN void setDirection(int);
00055 
00056         QMF_EXTERN const std::string& getName() const;
00057         QMF_EXTERN int getType() const;
00058         QMF_EXTERN int getAccess() const;
00059         QMF_EXTERN bool isIndex() const;
00060         QMF_EXTERN bool isOptional() const;
00061         QMF_EXTERN const std::string& getUnit() const;
00062         QMF_EXTERN const std::string& getDesc() const;
00063         QMF_EXTERN const std::string& getSubtype() const;
00064         QMF_EXTERN int getDirection() const;
00065 
00066 #ifndef SWIG
00067     private:
00068         friend class qmf::PrivateImplRef<SchemaProperty>;
00069         friend struct SchemaPropertyImplAccess;
00070 #endif
00071     };
00072 
00073 }
00074 
00075 #endif