summaryrefslogtreecommitdiff
path: root/cpp/rubygen/templates/all_method_bodies.rb
blob: d06f45949326c6e11bd80593abd27bd3fe32891d (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.methods_.each { |m| include "qpid/framing/"+m.body_name }
    }
  end
end

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