Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.42 KB

rapidcsv_Converter.md

File metadata and controls

62 lines (43 loc) · 1.42 KB

class rapidcsv::Converter< T >

Class providing conversion to/from numerical datatypes and strings. Only intended for rapidcsv internal usage, but exposed externally to allow specialization for custom datatype conversions.


template<typename T> Converter (const ConverterParams & pConverterParams)

Constructor.

Parameters

  • pConverterParams specifies how conversion of non-numerical values to numerical datatype shall be handled.

template<typename T> void ToStr (const T & pVal, std::string & pStr)

Converts numerical value to string representation.

Parameters

  • pVal numerical value
  • pStr output string

template<> void Converter< std::string >::ToStr (const std::string & pVal, std::string & pStr)

Specialized implementation handling string to string conversion.

Parameters

  • pVal string
  • pStr string

template<typename T> void ToVal (const std::string & pStr, T & pVal)

Converts string holding a numerical value to numerical datatype representation.

Parameters

  • pVal numerical value
  • pStr output string

template<> void Converter< std::string >::ToVal (const std::string & pStr, std::string & pVal)

Specialized implementation handling string to string conversion.

Parameters

  • pVal string
  • pStr string

API documentation generated using Doxygenmd