summaryrefslogtreecommitdiff
path: root/cpp/src/qmf/engine/SchemaImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qmf/engine/SchemaImpl.h')
-rw-r--r--cpp/src/qmf/engine/SchemaImpl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qmf/engine/SchemaImpl.h b/cpp/src/qmf/engine/SchemaImpl.h
index af3a1d98e4..7be757ee8d 100644
--- a/cpp/src/qmf/engine/SchemaImpl.h
+++ b/cpp/src/qmf/engine/SchemaImpl.h
@@ -201,10 +201,11 @@ namespace engine {
mutable bool hasHash;
std::auto_ptr<SchemaClassKey> classKey;
std::string description;
+ Severity severity;
std::vector<const SchemaArgument*> arguments;
- SchemaEventClassImpl(const char* p, const char* n) :
- package(p), name(n), hasHash(false), classKey(SchemaClassKeyImpl::factory(package, name, hash)) {}
+ SchemaEventClassImpl(const char* p, const char* n, Severity sev) :
+ package(p), name(n), hasHash(false), classKey(SchemaClassKeyImpl::factory(package, name, hash)), severity(sev) {}
SchemaEventClassImpl(qpid::framing::Buffer& buffer);
static SchemaEventClass* factory(qpid::framing::Buffer& buffer);
@@ -213,6 +214,7 @@ namespace engine {
void setDesc(const char* desc) { description = desc; }
const SchemaClassKey* getClassKey() const;
+ Severity getSeverity() const { return severity; }
int getArgumentCount() const { return arguments.size(); }
const SchemaArgument* getArgument(int idx) const;
};