summaryrefslogtreecommitdiff
path: root/cpp/bindings
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-09-18 20:15:15 +0000
committerTed Ross <tross@apache.org>2009-09-18 20:15:15 +0000
commit1f0b2bfcb1f3e540d26985d859e1935706317524 (patch)
tree4b94f7e10b70dd8dbf235b0ad7a0fcd083200365 /cpp/bindings
parent7190e1994763e42d208b5e3f17edd53a0d48546a (diff)
downloadqpid-python-1f0b2bfcb1f3e540d26985d859e1935706317524.tar.gz
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
Diffstat (limited to 'cpp/bindings')
-rw-r--r--cpp/bindings/qmf/ruby/qmf.rb4
-rwxr-xr-xcpp/bindings/qmf/tests/ruby_console.rb2
2 files changed, 1 insertions, 5 deletions
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}"