Class providing conversion to/from numerical datatypes and strings. More...
#include <rapidcsv.hpp>
Public Member Functions | |
Converter (const ConverterParams &pConverterParams) | |
Constructor. More... | |
void | ToStr (const T &pVal, std::string &pStr) const |
Converts numerical value to string representation. More... | |
void | ToVal (const std::string &pStr, T &pVal) const |
Converts string holding a numerical value to numerical datatype representation. More... | |
void | ToStr (const std::string &pVal, std::string &pStr) const |
Specialized implementation handling string to string conversion. More... | |
void | ToVal (const std::string &pStr, std::string &pVal) const |
Specialized implementation handling string to string conversion. More... | |
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.
Definition at line 107 of file rapidcsv.hpp.
|
inline |
Constructor.
pConverterParams | specifies how conversion of non-numerical values to numerical datatype shall be handled. |
Definition at line 115 of file rapidcsv.hpp.
|
inline |
Specialized implementation handling string to string conversion.
pVal | string |
pStr | string |
Definition at line 253 of file rapidcsv.hpp.
|
inline |
Converts numerical value to string representation.
pVal | numerical value |
pStr | output string |
Definition at line 125 of file rapidcsv.hpp.
|
inline |
Specialized implementation handling string to string conversion.
pVal | string |
pStr | string |
Definition at line 264 of file rapidcsv.hpp.
|
inline |
Converts string holding a numerical value to numerical datatype representation.
pVal | numerical value |
pStr | output string |
Definition at line 153 of file rapidcsv.hpp.