class LibComponent::DebugOutput

a class for debugging which print the output

Attributes

name[R]

Public Class Methods

create_dbusoutputs_from_introspect(intro_,component_) click to toggle source
# File lib/openplacos/libcomponent.rb, line 485
def self.create_dbusoutputs_from_introspect(intro_,component_)
  pin = Array.new
  intro_.each { |name, definition|
    p = self.new("/#{component_.name}#{name}")
    
    definition.each_key { |iface|
      component_output = component_.get_output_iface(name,iface)
      component_output.connect(p)
    }
    pin << p
  }
  return pin
end
new(name_) click to toggle source
# File lib/openplacos/libcomponent.rb, line 477
def initialize(name_)
  @name = name_
end

Public Instance Methods

[](propname) click to toggle source
# File lib/openplacos/libcomponent.rb, line 481
def [](propname)
  return self
end
read(*args) click to toggle source
# File lib/openplacos/libcomponent.rb, line 499
def read(*args)
  puts "Read on #{self.name} : #{args.inspect}"
  return [0]      
end
write(*args) click to toggle source
# File lib/openplacos/libcomponent.rb, line 504
def write(*args)
  puts "Write on #{self.name} : #{args.inspect}"
  return [0]
end