From 3f0838479df2a5678a6093f34276b9e336af3ded Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 15 Sep 2009 17:45:51 +0000 Subject: QMF Console updated to the point where query (get_object) is supported. The Ruby binding continues to track the c++ engine progress. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815416 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qmf/ObjectImpl.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'cpp/src/qmf/ObjectImpl.h') diff --git a/cpp/src/qmf/ObjectImpl.h b/cpp/src/qmf/ObjectImpl.h index 4dc2170bfc..d69979e0da 100644 --- a/cpp/src/qmf/ObjectImpl.h +++ b/cpp/src/qmf/ObjectImpl.h @@ -21,19 +21,22 @@ */ #include +#include #include #include #include #include #include +#include namespace qmf { struct ObjectImpl { + typedef boost::shared_ptr Ptr; typedef boost::shared_ptr ValuePtr; Object* envelope; const SchemaObjectClass* objectClass; - boost::shared_ptr objectId; + boost::shared_ptr objectId; uint64_t createTime; uint64_t destroyTime; uint64_t lastUpdatedTime; @@ -41,14 +44,14 @@ namespace qmf { mutable std::map statistics; ObjectImpl(Object* e, const SchemaObjectClass* type); - ObjectImpl(const SchemaObjectClass* type, qpid::framing::Buffer& buffer); + ObjectImpl(const SchemaObjectClass* type, qpid::framing::Buffer& buffer, bool prop, bool stat, bool managed); ~ObjectImpl(); void destroy(); - const ObjectId* getObjectId() const { return objectId.get(); } - void setObjectId(ObjectId* oid) { objectId.reset(oid); } + const ObjectId* getObjectId() const { return objectId.get() ? objectId->envelope : 0; } + void setObjectId(ObjectId* oid) { objectId.reset(oid->impl); } const SchemaObjectClass* getClass() const { return objectClass; } - Value* getValue(const std::string& key); + Value* getValue(const std::string& key) const; void parsePresenceMasks(qpid::framing::Buffer& buffer, std::set& excludeList); void encodeSchemaKey(qpid::framing::Buffer& buffer) const; -- cgit v1.2.1