summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/framing.0-10/all_method_bodies.rb
blob: 5971d4918951c4880fd3fdc6761998de306a6cc9 (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();