summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-27 20:39:35 +0000
committerAlan Conway <aconway@apache.org>2007-08-27 20:39:35 +0000
commitd52cb3fdccb2c18fa91c8331b4a09e4ea032ff1c (patch)
treefd21a8d5693446309ecaac3d73d2d3f7a01af284 /cpp/rubygen/cppgen.rb
parent7959f701c9420511009d3124a6d86fd8c652b439 (diff)
downloadqpid-python-d52cb3fdccb2c18fa91c8331b4a09e4ea032ff1c.tar.gz
* src/qpid/framing/FrameDefaultVisitor.h:
A visitor for all concrete frame body types. * src/qpid/broker/SessionState.h: 3 states - closed, active, suspended. * src/qpid/broker/SessionAdapter.h, .cpp: Session handler, implements session class commands. In progres.. * rubygen/templates/MethodBodyDefaultVisitor.rb: A visitor for all method body types. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@570236 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index d72731075f..0063231e84 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -221,5 +221,11 @@ class CppGen < Generator
def public() outdent { genl "public:" } end
def private() outdent { genl "private:" } end
def protected() outdent { genl "protected:" } end
+
+ # Returns [namespace, classname, filename]
+ def parse_classname(full_cname)
+ names=full_cname.split("::")
+ return names[0..-2].join('::'), names[-1], names.join("/")
+ end
end