summaryrefslogtreecommitdiff
path: root/cpp/rubygen/templates/all_method_bodies.rb
blob: 38fbc3159351b5176703eb12d309d98d6c6a3c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby
$: << ".."                      # Include .. in load path
require 'cppgen'

class AllMethodBodiesGen < CppGen
  
  def initialize(outdir, amqp)
    super(outdir, amqp)
    @namespace="qpid::framing"
    @filename="qpid/framing/all_method_bodies"
  end

  def generate()
    h_file(@filename) {
      @amqp.amqp_methods.each { |m| include "qpid/framing/"+m.body_name }
    }
  end
end

AllMethodBodiesGen.new(Outdir, Amqp).generate();