00001 #ifndef QMF_SCHEMA_PROPERTY_H
00002 #define QMF_SCHEMA_PROPERTY_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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