diff options
| author | Ted Ross <tross@apache.org> | 2010-09-21 21:48:41 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-09-21 21:48:41 +0000 |
| commit | 3cfbdf0e60c94733c0a79e94bdf8627afc6bb2a4 (patch) | |
| tree | e33d57bca9a2c2275e76f882484ac3ea913e83fd /cpp/src/qmf/ConsoleEvent.cpp | |
| parent | 449ab0f1062c0eac0234f84556de60436ba2ee9d (diff) | |
| download | qpid-python-3cfbdf0e60c94733c0a79e94bdf8627afc6bb2a4.tar.gz | |
QMFv2 Additions:
- QMFv2 schema encoding completed
- Schema queries handled by the agent and initiated by the console by user request
- Full query support with predicates evaluated on the agent (regex not yet implemented)
- Agent filtering in the console
- Agent aging in the console
- Unit tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@999662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/ConsoleEvent.cpp')
| -rw-r--r-- | cpp/src/qmf/ConsoleEvent.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/cpp/src/qmf/ConsoleEvent.cpp b/cpp/src/qmf/ConsoleEvent.cpp index d5775a86b4..b76abc83c6 100644 --- a/cpp/src/qmf/ConsoleEvent.cpp +++ b/cpp/src/qmf/ConsoleEvent.cpp @@ -37,12 +37,28 @@ ConsoleEvent& ConsoleEvent::operator=(const ConsoleEvent& s) { return PI::assign ConsoleEventCode ConsoleEvent::getType() const { return impl->getType(); } uint32_t ConsoleEvent::getCorrelator() const { return impl->getCorrelator(); } Agent ConsoleEvent::getAgent() const { return impl->getAgent(); } +AgentDelReason ConsoleEvent::getAgentDelReason() const { return impl->getAgentDelReason(); } +uint32_t ConsoleEvent::getSchemaIdCount() const { return impl->getSchemaIdCount(); } +SchemaId ConsoleEvent::getSchemaId(uint32_t i) const { return impl->getSchemaId(i); } uint32_t ConsoleEvent::getDataCount() const { return impl->getDataCount(); } Data ConsoleEvent::getData(uint32_t i) const { return impl->getData(i); } bool ConsoleEvent::isFinal() const { return impl->isFinal(); } const Variant::Map& ConsoleEvent::getArguments() const { return impl->getArguments(); } -Data ConsoleEventImpl::getData(uint32_t i) const { + +SchemaId ConsoleEventImpl::getSchemaId(uint32_t i) const +{ + uint32_t count = 0; + for (list<SchemaId>::const_iterator iter = newSchemaIds.begin(); iter != newSchemaIds.end(); iter++) { + if (count++ == i) + return *iter; + } + throw IndexOutOfRange(); +} + + +Data ConsoleEventImpl::getData(uint32_t i) const +{ uint32_t count = 0; for (list<Data>::const_iterator iter = dataList.begin(); iter != dataList.end(); iter++) { if (count++ == i) |
