From b2d40ca499e2e0a4cee09810c862facf08a70b0c Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 17 Sep 2009 19:27:52 +0000 Subject: QMF Console - Added implementation for method invocation - Added metaprogramming hooks in Ruby for attribute and method access - Refactored file structure git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@816345 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qmf/ObjectImpl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src/qmf/ObjectImpl.h') diff --git a/qpid/cpp/src/qmf/ObjectImpl.h b/qpid/cpp/src/qmf/ObjectImpl.h index d69979e0da..4ac5a31b54 100644 --- a/qpid/cpp/src/qmf/ObjectImpl.h +++ b/qpid/cpp/src/qmf/ObjectImpl.h @@ -31,11 +31,14 @@ namespace qmf { + class BrokerProxyImpl; + struct ObjectImpl { typedef boost::shared_ptr Ptr; typedef boost::shared_ptr ValuePtr; Object* envelope; const SchemaObjectClass* objectClass; + BrokerProxyImpl* broker; boost::shared_ptr objectId; uint64_t createTime; uint64_t destroyTime; @@ -44,7 +47,8 @@ namespace qmf { mutable std::map statistics; ObjectImpl(Object* e, const SchemaObjectClass* type); - ObjectImpl(const SchemaObjectClass* type, qpid::framing::Buffer& buffer, bool prop, bool stat, bool managed); + ObjectImpl(const SchemaObjectClass* type, BrokerProxyImpl* b, qpid::framing::Buffer& buffer, + bool prop, bool stat, bool managed); ~ObjectImpl(); void destroy(); @@ -52,6 +56,7 @@ namespace qmf { void setObjectId(ObjectId* oid) { objectId.reset(oid->impl); } const SchemaObjectClass* getClass() const { return objectClass; } Value* getValue(const std::string& key) const; + void invokeMethod(const std::string& methodName, const Value* inArgs, void* context) const; void parsePresenceMasks(qpid::framing::Buffer& buffer, std::set& excludeList); void encodeSchemaKey(qpid::framing::Buffer& buffer) const; -- cgit v1.2.1