Class: Rbind::GeneratorC::OperationsHDRHelper
- Inherits:
-
HelperBase
- Object
- HelperBase
- Rbind::GeneratorC::OperationsHDRHelper
- Defined in:
- lib/rbind/generator_c.rb
Instance Attribute Summary
Attributes inherited from HelperBase
#extern_types, #includes, #name
Instance Method Summary collapse
-
#initialize(name, root, extern_types) ⇒ OperationsHDRHelper
constructor
A new instance of OperationsHDRHelper.
- #wrap_operations ⇒ Object
Methods inherited from HelperBase
Constructor Details
#initialize(name, root, extern_types) ⇒ OperationsHDRHelper
Returns a new instance of OperationsHDRHelper.
165 166 167 |
# File 'lib/rbind/generator_c.rb', line 165 def initialize(name,root,extern_types) super end |
Instance Method Details
#wrap_operations ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/rbind/generator_c.rb', line 169 def wrap_operations str = "" @root.each_container do |type| str2 = "" type.each_operation do |op| str2 += "RBIND_EXPORTS #{op.csignature};\n" end if !str2.empty? str += "\n\n///methods for #{type.full_name}\n" str += str2 end end str end |