diff options
author | Alan Conway <aconway@apache.org> | 2007-10-16 19:07:54 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-10-16 19:07:54 +0000 |
commit | 428de9b6fe6f81f2bfc3f47d5db013b4b00da6a2 (patch) | |
tree | e3fe772cbe0e08ea84f4b2f54b969dc7471bb8e1 /cpp/rubygen/cppgen.rb | |
parent | 3bd61c1fa1a748789707b502ada85200f6180f5b (diff) | |
download | qpid-python-428de9b6fe6f81f2bfc3f47d5db013b4b00da6a2.tar.gz |
* Summary: generalized Invoker visitor to all *Operations and
*Handler classes, client and broker. Single template
free function invoke(Invocable, const AMQBody&); works for
all invocable handlers.
* rubygen/templates/OperationsInvoker.rb: Generates invoker
visitors for all Operations classes, client and server.
* src/qpid/framing/Invoker.h: Invoker base class and
template invoke() function.
* rubygen/templates/structs.rb: add generic invoke method template
to invoke an arbitrary object with the correct memeber function.
* src/qpid/framing/AMQMethodBody.cpp, .h: Removed invoke(),
replaced by qpid::framing::invoke()
* src/qpid/broker/SemanticHandler.cpp, ConnectionHandler.cpp:
Replace AMQMethodBody::invoke with invoke() free function.
* src/qpid/framing/StructHelper.h: Avoid un-necessary alloc
and copy in encode/decode.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585223 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-x | cpp/rubygen/cppgen.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb index 509cd39295..ceda5e039c 100755 --- a/cpp/rubygen/cppgen.rb +++ b/cpp/rubygen/cppgen.rb @@ -202,7 +202,6 @@ class CppGen < Generator end def struct_class(type, name, bases, &block) - genl gen "#{type} #{name}" if (!bases.empty?) genl ":" |