Changeset 49:cdd4cf3eda0c in rrlib_rtti_conversion for tConversionOperationSequence.h


Ignore:
Timestamp:
08.02.2022 07:22:43 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Tags:
tip
Message:

Allows to specify destination object pointer type passed to Convert function. Custom types may allow conversion operations to provide additional information (timestamps are an example).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tConversionOperationSequence.h

    r3 r49  
    139139   * \param source_type Source Type (can be omitted if first operation has fixed source type) 
    140140   * \param destination_type Destination Type (can be omitted if last operation has fixed destination type) 
     141   * \param destination_pointer_type Type of destination_object pointer caller provides to Convert function. Custom types allow conversion operations to provide additional information (timestamps are an example). 
    141142   * \throw Throws exception if conversion operation sequence erroneous, ambiguous, or cannot be used to convert specified types 
    142143   */ 
    143   tCompiledConversionOperation Compile(bool allow_reference_to_source, const tType& source_type = tType(), const tType& destination_type = tType()) const; 
     144  tCompiledConversionOperation Compile(bool allow_reference_to_source, const tType& source_type = tType(), const tType& destination_type = tType(), const std::type_info& destination_pointer_type = typeid(tTypedPointer)) const; 
    144145 
    145146  /*! 
Note: See TracChangeset for help on using the changeset viewer.