module OroGen::TypekitMarshallers::TypeInfo::CompoundType
Public Instance Methods
boost_serialization_compatible?()
click to toggle source
# File lib/orogen/marshallers/type_info.rb, line 108 def boost_serialization_compatible? dependencies.all?(&:boost_serialization_compatible?) end
info_type()
click to toggle source
# File lib/orogen/marshallers/type_info.rb, line 127 def info_type "RTT::types::StructTypeInfo" end
info_type_header()
click to toggle source
# File lib/orogen/marshallers/type_info.rb, line 123 def info_type_header "rtt/types/StructTypeInfo.hpp" end
to_boost_serialization()
click to toggle source
# File lib/orogen/marshallers/type_info.rb, line 111 def to_boost_serialization result = [] each_field do |field_name, field_type| if field_type < Typelib::ArrayType result << "a & make_nvp(\"#{field_name}\", boost::serialization::make_array(b.#{field_name}, #{field_type.length}));" else result << "a & make_nvp(\"#{field_name}\", b.#{field_name});" end end result.join("\n"); end