Module: OroGen::TypekitMarshallers::Corba::CompoundType

Defined in:
lib/orogen/marshallers/corba.rb

Instance Method Summary collapse

Instance Method Details

#from_corba(typekit, result, indent) ⇒ Object



374
375
376
377
378
379
380
# File 'lib/orogen/marshallers/corba.rb', line 374

def from_corba(typekit, result, indent)
    code_copy(typekit, result, indent, "value", "corba", "fromCORBA", true) do |field_name, field_type|
        if field_type.inlines_code?
            field_type.inline_fromCorba("value.#{field_name}", "corba.#{field_name}", indent)
        end
    end
end

#to_corba(typekit, result, indent) ⇒ Object



367
368
369
370
371
372
373
# File 'lib/orogen/marshallers/corba.rb', line 367

def to_corba(typekit, result, indent)
    code_copy(typekit, result, indent, "corba", "value", "toCORBA", true) do |field_name, field_type|
        if field_type.inlines_code?
            field_type.inline_toCorba("corba.#{field_name}", "value.#{field_name}", indent)
        end
    end
end