From bb2883b9f5cfad0e028a9849ed91e36418a2d0ff Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 21 Aug 2007 15:51:41 +0000 Subject: Refresh of transitional xml to more closely reflect latest specification Initial execution-result support (not yet handled on c++ client) Generation is now all done through the ruby code (it is a little slower at present I'm afraid, will try to speed it up over the next weeks) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568174 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/rubygen/samples/Operations.rb | 85 --------------------------------------- cpp/rubygen/samples/runme | 18 --------- 2 files changed, 103 deletions(-) delete mode 100755 cpp/rubygen/samples/Operations.rb delete mode 100755 cpp/rubygen/samples/runme (limited to 'cpp/rubygen/samples') diff --git a/cpp/rubygen/samples/Operations.rb b/cpp/rubygen/samples/Operations.rb deleted file mode 100755 index 6b0a24a26c..0000000000 --- a/cpp/rubygen/samples/Operations.rb +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env ruby -# Usage: output_directory xml_spec_file [xml_spec_file...] -# -$: << '..' -require 'cppgen' - -class OperationsGen < CppGen - - def initialize(chassis, outdir, amqp) - super(outdir, amqp) - @chassis=chassis - @classname="AMQP_#{@chassis.caps}Operations" - end - - def handler_method (m) - gen "\nvirtual void #{m.cppname}(" - gen m.signature.join(",\n") - gen ") = 0;\n" - end - - def handler_classname(c) c.name.caps+"Handler"; end - - def handler_class(c) - handlerclass=handler_classname c - gen < -#include "qpid/framing/ProtocolVersion.h" - -namespace qpid { -namespace framing { - -class #{@classname} { - - public: - virtual ~#{@classname}() {} - - virtual ProtocolVersion getVersion() const = 0; - - // Include framing constant declarations - #include "AMQP_Constants.h" - - // Inner classes -EOS - indent { @amqp.amqp_classes.each { |c| handler_class(c) } } - gen < " - puts "Note: passing '-' as the output directory lists generated files." - exit 1 -end - -require 'amqpgen' -Amqp=AmqpRoot.new(*ARGV[1,ARGV.size]) - -require 'Proxy.rb' -require 'Operations.rb' - - -- cgit v1.2.1