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.
More...
#include <rapidcsv.hpp>
|
| 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...
|
|
template<typename T>
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.
◆ Converter()
Constructor.
- Parameters
-
pConverterParams | specifies how conversion of non-numerical values to numerical datatype shall be handled. |
◆ ToStr() [1/2]
void rapidcsv::Converter< std::string >::ToStr |
( |
const std::string & |
pVal, |
|
|
std::string & |
pStr |
|
) |
| const |
|
inline |
Specialized implementation handling string to string conversion.
- Parameters
-
◆ ToStr() [2/2]
Converts numerical value to string representation.
- Parameters
-
pVal | numerical value |
pStr | output string |
◆ ToVal() [1/2]
void rapidcsv::Converter< std::string >::ToVal |
( |
const std::string & |
pStr, |
|
|
std::string & |
pVal |
|
) |
| const |
|
inline |
Specialized implementation handling string to string conversion.
- Parameters
-
◆ ToVal() [2/2]
Converts string holding a numerical value to numerical datatype representation.
- Parameters
-
pVal | numerical value |
pStr | output string |
The documentation for this class was generated from the following file: