summaryrefslogtreecommitdiff
path: root/cpp/rubygen/templates
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-10-29 18:35:29 +0000
committerAlan Conway <aconway@apache.org>2007-10-29 18:35:29 +0000
commit505c43651b302ecf773bff1fcf3d45f5a1aef682 (patch)
treed1548a878fd1186f5a4d317ea624336760af8e98 /cpp/rubygen/templates
parent0fb42a897731efaea3dcb8c4238707f38c0d4d3e (diff)
downloadqpid-python-505c43651b302ecf773bff1fcf3d45f5a1aef682.tar.gz
Rename client::Session as client::Session_0_10
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@589794 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/templates')
-rw-r--r--cpp/rubygen/templates/Session.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/rubygen/templates/Session.rb b/cpp/rubygen/templates/Session.rb
index d3520eaf2d..f351710e7d 100644
--- a/cpp/rubygen/templates/Session.rb
+++ b/cpp/rubygen/templates/Session.rb
@@ -9,7 +9,7 @@ class SessionGen < CppGen
def initialize(outdir, amqp)
super(outdir, amqp)
@chassis="server"
- @classname="Session"
+ @classname="Session_#{@amqp.version.bars}"
end
def return_type(m)
@@ -82,9 +82,9 @@ class SessionGen < CppGen
params=m.signature
end
if (params.empty?)
- gen "#{return_type(m)} Session::#{m.parent.name.lcaps}#{m.name.caps}(){\n\n"
+ gen "#{return_type(m)} #{@classname}::#{m.parent.name.lcaps}#{m.name.caps}(){\n\n"
else
- gen "#{return_type(m)} Session::#{m.parent.name.lcaps}#{m.name.caps}("
+ gen "#{return_type(m)} #{@classname}::#{m.parent.name.lcaps}#{m.name.caps}("
indent { gen params.join(",\n") }
gen "){\n\n"
end