Go to the documentation of this file.00001 #ifndef QMF_SCHEMA_H
00002 #define QMF_SCHEMA_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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 "qpid/sys/IntegerTypes.h"
00031 #include "qmf/Handle.h"
00032 #include "qmf/SchemaTypes.h"
00033 #include <string>
00034
00035 namespace qmf {
00036
00037 #ifndef SWIG
00038 template <class> class PrivateImplRef;
00039 #endif
00040
00041 class SchemaImpl;
00042 class SchemaId;
00043 class SchemaProperty;
00044 class SchemaMethod;
00045
00046 class QMF_CLASS_EXTERN Schema : public qmf::Handle<SchemaImpl> {
00047 public:
00048 QMF_EXTERN Schema(SchemaImpl* impl = 0);
00049 QMF_EXTERN Schema(const Schema&);
00050 QMF_EXTERN Schema& operator=(const Schema&);
00051 QMF_EXTERN ~Schema();
00052
00053 QMF_EXTERN Schema(int, const std::string&, const std::string&);
00054 QMF_EXTERN const SchemaId& getSchemaId() const;
00055
00056 QMF_EXTERN void finalize();
00057 QMF_EXTERN bool isFinalized() const;
00058 QMF_EXTERN void addProperty(const SchemaProperty&);
00059 QMF_EXTERN void addMethod(const SchemaMethod&);
00060 QMF_EXTERN void setDesc(const std::string&);
00061 QMF_EXTERN const std::string& getDesc() const;
00062
00063 QMF_EXTERN void setDefaultSeverity(int);
00064 QMF_EXTERN int getDefaultSeverity() const;
00065
00066 QMF_EXTERN uint32_t getPropertyCount() const;
00067 QMF_EXTERN SchemaProperty getProperty(uint32_t) const;
00068
00069 QMF_EXTERN uint32_t getMethodCount() const;
00070 QMF_EXTERN SchemaMethod getMethod(uint32_t) const;
00071
00072 #ifndef SWIG
00073 private:
00074 friend class qmf::PrivateImplRef<Schema>;
00075 friend struct SchemaImplAccess;
00076 #endif
00077 };
00078
00079 }
00080
00081 #endif