Static Public Member Functions | List of all members
cras::ParamToStringFn< T > Struct Template Reference

Default function for converting values to string in getParam(Verbose) functions. Uses cras::to_string(). More...

#include <get_param_options.hpp>

Static Public Member Functions

::std::string to_string (const T &value)
 Convert the given value to a string representation. More...
 

Detailed Description

template<typename T>
struct cras::ParamToStringFn< T >

Default function for converting values to string in getParam(Verbose) functions. Uses cras::to_string().

Template Parameters
TType of the value to convert to string.
Note
Create a specialization of this struct in case you need a different implementation of the conversion or if you add an overload of cras::to_string() that can be included after this file (and declare the specialization after the declaration of your overload).

Definition at line 81 of file get_param_options.hpp.

Member Function Documentation

◆ to_string()

template<typename T >
::std::string cras::ParamToStringFn< T >::to_string ( const T &  value)
inlinestatic

Convert the given value to a string representation.

Template Parameters
TType of the value.
Parameters
[in]valueThe value to convert.
Returns
The string representation.

Definition at line 89 of file get_param_options.hpp.


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


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04