Class: Rbind::GeneratorC::OperationsHDRHelper

Inherits:
HelperBase
  • Object
show all
Defined in:
lib/rbind/generator_c.rb

Instance Attribute Summary

Attributes inherited from HelperBase

#includes, #name

Instance Method Summary collapse

Methods inherited from HelperBase

#binding, #wrap_includes

Constructor Details

#initialize(name, root) ⇒ OperationsHDRHelper



147
148
149
# File 'lib/rbind/generator_c.rb', line 147

def initialize(name,root)
    super
end

Instance Method Details

#wrap_operationsObject



151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/rbind/generator_c.rb', line 151

def wrap_operations
    str = ""
    @root.each_container do |type|
        str2 = ""
        type.each_operation do |op|
            str2 += "#{op.csignature};\n"
        end
        if !str2.empty?
            str += "\n\n///methods for #{type.full_name}\n"
            str += str2
        end
    end
    str
end