Class: Syskit::DRoby::V5::TypelibTypeModelDumper::DRoby

Inherits:
Object
  • Object
show all
Defined in:
lib/syskit/droby/v5/droby_dump.rb

Overview

Class used to transfer the definition of a type

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, xml) ⇒ DRoby

Returns a new instance of DRoby



143
144
145
146
# File 'lib/syskit/droby/v5/droby_dump.rb', line 143

def initialize(name, xml)
    @name = name
    @xml = xml
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



142
143
144
# File 'lib/syskit/droby/v5/droby_dump.rb', line 142

def name
  @name
end

#xmlObject (readonly)

Returns the value of attribute xml



142
143
144
# File 'lib/syskit/droby/v5/droby_dump.rb', line 142

def xml
  @xml
end

Instance Method Details

#proxy(peer) ⇒ Object



147
148
149
150
151
152
153
# File 'lib/syskit/droby/v5/droby_dump.rb', line 147

def proxy(peer)
    if xml
        reg = Typelib::Registry.from_xml(xml)
        peer.object_manager.typelib_registry.merge(reg)
    end
    peer.object_manager.typelib_registry.get(name)
end