summaryrefslogtreecommitdiff
path: root/cpp/src/qmf/engine/ObjectIdImpl.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-12-04 18:59:29 +0000
committerTed Ross <tross@apache.org>2009-12-04 18:59:29 +0000
commit66576cdc558e8d5cbb95ed70e851005b4273a0ae (patch)
treed76ba568575bf0de335ca67634652d272a75fadf /cpp/src/qmf/engine/ObjectIdImpl.h
parent0e1be326677cf7540d7006efc5f9bad9f47219ce (diff)
downloadqpid-python-66576cdc558e8d5cbb95ed70e851005b4273a0ae.tar.gz
QPID-2246 - QMF - Querying objects using a selector of type ObjectId yields incorrect results
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@887320 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/engine/ObjectIdImpl.h')
-rw-r--r--cpp/src/qmf/engine/ObjectIdImpl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/qmf/engine/ObjectIdImpl.h b/cpp/src/qmf/engine/ObjectIdImpl.h
index d9871ac217..d70c8efff4 100644
--- a/cpp/src/qmf/engine/ObjectIdImpl.h
+++ b/cpp/src/qmf/engine/ObjectIdImpl.h
@@ -51,15 +51,15 @@ namespace engine {
void encode(qpid::framing::Buffer& buffer) const;
void fromString(const std::string& repr);
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; }
- uint32_t getAgentBank() const { return first & 0x000000000FFFFFFFLL; }
- uint64_t getObjectNum() const { return second; }
- uint32_t getObjectNumHi() const { return (uint32_t) (second >> 32); }
- uint32_t getObjectNumLo() const { return (uint32_t) (second & 0x00000000FFFFFFFFLL); }
+ uint8_t getFlags() const;
+ uint16_t getSequence() const;
+ uint32_t getBrokerBank() const;
+ uint32_t getAgentBank() const;
+ uint64_t getObjectNum() const;
+ uint32_t getObjectNumHi() const;
+ uint32_t getObjectNumLo() const;
bool isDurable() const { return getSequence() == 0; }
- void setValue(uint64_t f, uint64_t s) { first = f; second = s; }
+ void setValue(uint64_t f, uint64_t s) { first = f; second = s; agent = 0; }
bool operator==(const ObjectIdImpl& other) const;
bool operator<(const ObjectIdImpl& other) const;