summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/engine/ObjectIdImpl.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-09-29 03:21:49 +0000
committerTed Ross <tross@apache.org>2009-09-29 03:21:49 +0000
commit74fecbf7759d549824bf92266c51a3d5180b6b33 (patch)
tree74acb6cfb5cdd1a6f6602073ee37f72847e69c53 /qpid/cpp/src/qmf/engine/ObjectIdImpl.h
parent425d83fc95aa42e155341aac20b814d4bf7bae08 (diff)
downloadqpid-python-74fecbf7759d549824bf92266c51a3d5180b6b33.tar.gz
QMF Engine updates:
- Connected console handler callbacks - Added string representations for a number of object classes - Added a feature that completes query requests sent to disconnected agents git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@819819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/engine/ObjectIdImpl.h')
-rw-r--r--qpid/cpp/src/qmf/engine/ObjectIdImpl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qmf/engine/ObjectIdImpl.h b/qpid/cpp/src/qmf/engine/ObjectIdImpl.h
index 44fa8adffc..d9871ac217 100644
--- a/qpid/cpp/src/qmf/engine/ObjectIdImpl.h
+++ b/qpid/cpp/src/qmf/engine/ObjectIdImpl.h
@@ -38,6 +38,7 @@ namespace engine {
AgentAttachment* agent;
uint64_t first;
uint64_t second;
+ mutable std::string repr;
ObjectIdImpl() : agent(0), first(0), second(0) {}
ObjectIdImpl(qpid::framing::Buffer& buffer);
@@ -49,7 +50,7 @@ namespace engine {
void decode(qpid::framing::Buffer& buffer);
void encode(qpid::framing::Buffer& buffer) const;
void fromString(const std::string& repr);
- std::string asString() const;
+ const std::string& asString() const;
uint8_t getFlags() const { return (first & 0xF000000000000000LL) >> 60; }
uint16_t getSequence() const { return (first & 0x0FFF000000000000LL) >> 48; }
uint32_t getBrokerBank() const { return (first & 0x0000FFFFF0000000LL) >> 28; }