Changeset 9:f909044a9f7b in rrlib_rtti_conversion for tRegisteredConversionOperation.h


Ignore:
Timestamp:
22.09.2017 01:26:15 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds option to specify type conversions operations that are not usually combined (you could call combinations deprecated) and fixes various bugs found with unit test in finroc_plugins_runtime_construction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tRegisteredConversionOperation.h

    r8 r9  
    222222 
    223223  /*! 
     224   * \return Handle of conversion operation that this one is not usually combined with (0xFFFF if there is no such operation) 
     225   */ 
     226  uint16_t GetNotUsuallyCombinedWithHandle() const 
     227  { 
     228    return not_usually_combined_with_handle; 
     229  } 
     230 
     231  /*! 
    224232   * \return Registered type conversion operations. 
    225233   */ 
     
    272280   * \param single_conversion_option If operation provides only a single conversion option - points to this option (otherwise override GetConversionOptions()) 
    273281   * \param parameter Any parameter of conversion operation (optional) 
     282   * \param not_usually_combined_with Conversion operation that this one is not usually combined with (a deprecated combination if you want) 
    274283   */ 
    275284  tRegisteredConversionOperation(util::tManagedConstCharPointer name, const tSupportedTypes& supported_source_types, const tSupportedTypes& supported_destination_types, 
    276                                  const tConversionOption* single_conversion_option = nullptr, const tParameterDefinition& parameter = tParameterDefinition()); 
     285                                 const tConversionOption* single_conversion_option = nullptr, const tParameterDefinition& parameter = tParameterDefinition(), 
     286                                 const tRegisteredConversionOperation* not_usually_combined_with = nullptr); 
    277287 
    278288  /*! 
     
    303313  /*! Local handle of operation */ 
    304314  uint16_t handle; 
     315 
     316  /*! Handle of conversion operation that this one is not usually combined with (0xFFFF if there is no such operation) */ 
     317  uint16_t not_usually_combined_with_handle; 
    305318 
    306319 
Note: See TracChangeset for help on using the changeset viewer.