summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/99-0/Session.rb
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-20 12:10:37 +0000
committerGordon Sim <gsim@apache.org>2008-04-20 12:10:37 +0000
commit4780580874e8d6a3e3590fa5fdf8a088310b20ae (patch)
treea73e247b9821c2429a8e015ddff9cbb5d17a88e8 /qpid/cpp/rubygen/99-0/Session.rb
parente29bb6406ad8d0c0d9d58b7d1d09798829687602 (diff)
downloadqpid-python-4780580874e8d6a3e3590fa5fdf8a088310b20ae.tar.gz
QPID-920: converted c++ client to use final 0-10 protocol
* connection handler converted to using invoker & proxy and updated to final method defs * SessionCore & ExecutionHandler replace by SessionImpl * simplified handling of completion & results, removed handling of responses git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@649915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/99-0/Session.rb')
-rw-r--r--qpid/cpp/rubygen/99-0/Session.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/qpid/cpp/rubygen/99-0/Session.rb b/qpid/cpp/rubygen/99-0/Session.rb
index 1ec78f6167..8e14d8daf9 100644
--- a/qpid/cpp/rubygen/99-0/Session.rb
+++ b/qpid/cpp/rubygen/99-0/Session.rb
@@ -8,7 +8,7 @@ class CppGen
def session_methods
excludes = ["channel", "connection", "session", "execution"]
gen_methods=@amqp.methods_on(@chassis).reject { |m|
- excludes.include? m.parent.name or m.body_name.include?("010")
+ excludes.include? m.classname or !m.parent.name.include?("010")
}
end
@@ -43,7 +43,7 @@ class AmqpMethod
def param_names_c() fields_c.map { |f| f.cppname} end
def signature_c() fields_c.map { |f| f.signature }; end
def sig_c_default() fields_c.map { |f| f.sig_default }; end
- def argpack_name() "#{parent.cppname}#{name.caps}Parameters"; end
+ def argpack_name() "#{classname.lcaps.cppsafe}#{name.caps}Parameters"; end
def argpack_type()
"boost::parameter::parameters<" +
fields_c.map { |f| "arg::keyword_tags::"+f.cppname }.join(',') +
@@ -54,7 +54,7 @@ class AmqpMethod
return "Response" if (not responses().empty?)
return "Completion"
end
- def session_function() "#{parent.name.lcaps}#{name.caps}"; end
+ def session_function() "#{classname.lcaps}#{name.caps}"; end
end
class SessionNoKeywordGen < CppGen
@@ -75,6 +75,7 @@ class SessionNoKeywordGen < CppGen
genl "using framing::Content;"
genl "using framing::FieldTable;"
genl "using framing::MethodContent;"
+ genl "using framing::SequenceSet;"
genl "using framing::SequenceNumberSet;"
genl "using framing::Uuid;"
genl
@@ -86,7 +87,7 @@ class SessionNoKeywordGen < CppGen
cpp_class(@classname, "public SessionBase") {
public
genl "Session_#{@amqp.version.bars}() {}"
- genl "Session_#{@amqp.version.bars}(shared_ptr<SessionCore> core) : SessionBase(core) {}"
+ genl "Session_#{@amqp.version.bars}(shared_ptr<SessionImpl> core) : SessionBase(core) {}"
session_methods.each { |m|
genl
doxygen(m)
@@ -180,7 +181,7 @@ EOS
# Session class.
cpp_class(@classname,"public #{@base}") {
private
- genl "#{@classname}(shared_ptr<SessionCore> core) : #{ @base}(core) {}"
+ genl "#{@classname}(shared_ptr<SessionImpl> core) : #{ @base}(core) {}"
keyword_methods.each { |m| typedef m.argpack_type, m.argpack_name }
genl "friend class Connection;"
public