summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/engine/SchemaImpl.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-01-13 11:57:19 +0000
committerTed Ross <tross@apache.org>2010-01-13 11:57:19 +0000
commitfd64f22be60f12e03df8974b547cd9b3af331601 (patch)
treee2d9cafd894623102b5b1384d00af75db4dc88ff /qpid/cpp/src/qmf/engine/SchemaImpl.h
parent26280399738211de3f472b625091ff22c762538b (diff)
downloadqpid-python-fd64f22be60f12e03df8974b547cd9b3af331601.tar.gz
Added raise_event support to the Ruby and Python wrapped agent APIs.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@898727 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/engine/SchemaImpl.h')
-rw-r--r--qpid/cpp/src/qmf/engine/SchemaImpl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/qpid/cpp/src/qmf/engine/SchemaImpl.h b/qpid/cpp/src/qmf/engine/SchemaImpl.h
index af3a1d98e4..7be757ee8d 100644
--- a/qpid/cpp/src/qmf/engine/SchemaImpl.h
+++ b/qpid/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;
};