module OroGen::TypekitMarshallers::Corba::NumericType
Public Instance Methods
corba_name()
click to toggle source
# File lib/orogen/marshallers/corba.rb, line 159 def corba_name if integer? if name == "/bool" "CORBA::Boolean" elsif size == 1 if unsigned? "CORBA::Octet" else "CORBA::Char" end elsif size == 2 "CORBA::#{'U' if unsigned?}Short" elsif size == 4 "CORBA::#{'U' if unsigned?}Long" elsif size == 8 "CORBA::#{'U' if unsigned?}LongLong" else raise "unexpected integer size #{size}" end else if size == 4 "CORBA::Float" elsif size == 8 "CORBA::Double" else raise "unexpected floating-point size #{size}" end end end