module OroGen::TypekitMarshallers::Corba::Type

Public Instance Methods

corba_arg_type() click to toggle source
# File lib/orogen/marshallers/corba.rb, line 134
def corba_arg_type; "#{corba_name} const&" end
corba_name() click to toggle source
# File lib/orogen/marshallers/corba.rb, line 101
def corba_name
    if inlines_code?
        normalize_cxxname(basename)
    elsif contains_opaques?
        "#{corba_namespace}::#{normalize_cxxname(basename.gsub(/[^\w]/, '_'))}_m"
    else
        "#{corba_namespace}::#{normalize_cxxname(basename.gsub(/[^\w]/, '_'))}"
    end
end
corba_namespace() click to toggle source
# File lib/orogen/marshallers/corba.rb, line 110
def corba_namespace
    "orogen#{namespace('::')}Corba"
end
corba_ref_type() click to toggle source
# File lib/orogen/marshallers/corba.rb, line 135
def corba_ref_type; "#{corba_name}&" end
from_corba(typekit, result, *args) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 140
def from_corba(typekit, result, *args)
    raise NotImplementedError
end
from_corba_array_signature(typekit, options = Hash.new) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 129
def from_corba_array_signature(typekit, options = Hash.new)
    target_type = typekit.intermediate_type_for(self)
    "bool #{options[:namespace]}fromCORBA( #{ref_type} value, int length, #{target_type.corba_arg_type} corba )"
end
from_corba_signature(typekit, options = Hash.new) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 124
def from_corba_signature(typekit, options = Hash.new)
    target_type = typekit.intermediate_type_for(self)
    "bool #{options[:namespace]}fromCORBA( #{ref_type} value, #{target_type.corba_arg_type} corba )"
end
inline_fromAny(any_var, corba_var, indent) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 147
def inline_fromAny(any_var, corba_var, indent)
    "#{indent}if (!(#{any_var} >>= #{corba_var})) return false;"
end
inline_fromCorba(result, value, indent) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 144
def inline_fromCorba(result, value, indent)
    "#{indent}#{result} = #{value};\n"
end
inline_toAny(any_var, corba_var, indent) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 153
def inline_toAny(any_var, corba_var, indent)
    "#{indent}#{any_var} <<= #{corba_var};"
end
inline_toCorba(result, value, indent) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 150
def inline_toCorba(result, value, indent)
    "#{indent}#{result} = #{value};\n"
end
to_corba(typekit, result, *args) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 137
def to_corba(typekit, result, *args)
    raise NotImplementedError
end
to_corba_array_signature(typekit, options = Hash.new) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 119
def to_corba_array_signature(typekit, options = Hash.new)
    target_type = typekit.intermediate_type_for(self)
    "bool #{options[:namespace]}toCORBA( #{target_type.corba_ref_type} corba, #{arg_type} value, int length )"
end
to_corba_signature(typekit, options = Hash.new) click to toggle source
# File lib/orogen/marshallers/corba.rb, line 114
def to_corba_signature(typekit, options = Hash.new)
    target_type = typekit.intermediate_type_for(self)
    "bool #{options[:namespace]}toCORBA( #{target_type.corba_ref_type} corba, #{arg_type} value )"
end