class OroGen::Gen::RTT_CPP::TaskContextGeneration::GeneratedMember
Represents a class member in the generated code
This is mainly meant for plugins
Attributes
kind[R]
name[R]
type[R]
Public Class Methods
new(task, kind, name, type = nil)
click to toggle source
Calls superclass method
OroGen::Gen::RTT_CPP::TaskContextGeneration::GeneratedObject.new
# File lib/orogen/gen/tasks.rb, line 781 def initialize(task, kind, name, type = nil) super(task) @kind, @name, @type = kind, name, type end
Public Instance Methods
generate_declaration()
click to toggle source
# File lib/orogen/gen/tasks.rb, line 790 def generate_declaration if type result = "#{type} #{name};" if doc "#{doc} */#{result}" else result end end end