kanzi::detail::LogArgumentTypeEraser Class Reference

Log argument reference holder. More...

#include <kanzi/core/log/log_argument_type_eraser.hpp>

Public Member Functions

template<typename T >
 LogArgumentTypeEraser (const T &value)
 Determines function being used to convert void argument value pointer to string. More...
 
string convert (string_view formatString) const
 Converts the argument value to string according to the supplied format string. More...
 

Detailed Description

Log argument reference holder.

Keeps void pointer to log format argument and pointer to the function used to convert the pointer to string. Template function being used for conversion is deduced from type of the argument.

Constructor & Destructor Documentation

template<typename T >
kanzi::detail::LogArgumentTypeEraser::LogArgumentTypeEraser ( const T &  value)
inlineexplicit

Determines function being used to convert void argument value pointer to string.

Member Function Documentation

string kanzi::detail::LogArgumentTypeEraser::convert ( string_view  formatString) const
inline

Converts the argument value to string according to the supplied format string.

Parameters
formatStringThe format string.
Returns
The referenced argument converted to a string according to the supplied format string.

The documentation for this class was generated from the following file: