Changeset 76:cb9e804d6ff1 in finroc_plugins_network_transport


Ignore:
Timestamp:
04.01.2022 13:44:07 (11 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adapts to change in rrlib_rtti_conversion (supports/values new setting to handle remote type conversion parameters as string by default)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • runtime_info/tRemoteTypeConversion.h

    r65 r76  
    103103    if (operation->Parameter()) 
    104104    { 
    105       stream << operation->Parameter(); 
     105      if (operation->ParameterHandlingAsStringIsDefault()) 
     106      { 
     107        auto& definition = operation->Parameter(); 
     108        stream << definition.GetName() << rrlib::rtti::tDataType<std::string>() << definition.IsStatic(); 
     109        stream.WriteBoolean(definition.GetDefaultValue().GetRawDataPointer()); 
     110        if (definition.GetDefaultValue().GetRawDataPointer()) 
     111        { 
     112          definition.GetDefaultValue().Serialize(stream, rrlib::serialization::tDataEncoding::STRING); 
     113        } 
     114      } 
     115      else 
     116      { 
     117        stream << operation->Parameter(); 
     118      } 
    106119    } 
    107120    if (flags & NOT_USUALLY_COMBINED_WITH) 
Note: See TracChangeset for help on using the changeset viewer.