From 1f0b2bfcb1f3e540d26985d859e1935706317524 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 18 Sep 2009 20:15:15 +0000 Subject: Refactored the QMF engine to adhere to the following rules regarding the pimpl (Pointer to Implementation) pattern: 1) Impl classes have constructors matching the public constructors 2) Additional Impl constructors are accessed through a static factory function 3) All linkages to objects are to the public object 4) If a back-link (from Impl to public) is needed, the Impl class must be derived from boost::noncopyable 5) All public classes have non-default copy constructors that make a copy of the Impl class git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816770 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf/ruby/qmf.rb | 4 ---- cpp/bindings/qmf/tests/ruby_console.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'cpp/bindings') diff --git a/cpp/bindings/qmf/ruby/qmf.rb b/cpp/bindings/qmf/ruby/qmf.rb index 12741b45f2..a48f2bc788 100644 --- a/cpp/bindings/qmf/ruby/qmf.rb +++ b/cpp/bindings/qmf/ruby/qmf.rb @@ -512,9 +512,7 @@ module Qmf class MethodResponse def initialize(impl) - puts "start copying..." @impl = Qmfengine::MethodResponse.new(impl) - puts "done copying..." end def status @@ -896,7 +894,6 @@ module Qmf valid = @impl.getEvent(@event) while valid count += 1 - puts "Console Event: #{@event.kind}" case @event.kind when Qmfengine::ConsoleEvent::AGENT_ADDED when Qmfengine::ConsoleEvent::AGENT_DELETED @@ -977,7 +974,6 @@ module Qmf valid = @impl.getEvent(@event) while valid count += 1 - puts "Broker Event: #{@event.kind}" case @event.kind when Qmfengine::BrokerEvent::BROKER_INFO when Qmfengine::BrokerEvent::DECLARE_QUEUE diff --git a/cpp/bindings/qmf/tests/ruby_console.rb b/cpp/bindings/qmf/tests/ruby_console.rb index 2f8f633d16..23d7441643 100755 --- a/cpp/bindings/qmf/tests/ruby_console.rb +++ b/cpp/bindings/qmf/tests/ruby_console.rb @@ -100,7 +100,7 @@ class App < Qmf::ConsoleHandler puts " port : #{b.port}" puts " uptime : #{b.uptime / 1000000000}" - for rep in 0...0 + for rep in 0...1 puts " Pinging..." ret = b.echo(45, 'text string') puts " ret=#{ret}" -- cgit v1.2.1