Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::JsonConverter Class Reference

Public Member Functions

 JsonConverter (const std::vector< std::string > &column_names)
 
template<typename FieldAt >
std::string row_to_json (size_t field_count, FieldAt field_at, const std::vector< std::string > &subset={}) const
 
template<typename FieldAt >
std::string row_to_json_array (size_t field_count, FieldAt field_at, const std::vector< std::string > &subset={}) const
 

Detailed Description

Definition at line 96 of file json_converter.hpp.

Constructor & Destructor Documentation

◆ JsonConverter()

csv::internals::JsonConverter::JsonConverter ( const std::vector< std::string > &  column_names)
inlineexplicit

Definition at line 99 of file json_converter.hpp.

Member Function Documentation

◆ row_to_json()

template<typename FieldAt >
std::string csv::internals::JsonConverter::row_to_json ( size_t  field_count,
FieldAt  field_at,
const std::vector< std::string > &  subset = {} 
) const
inline

Definition at line 111 of file json_converter.hpp.

◆ row_to_json_array()

template<typename FieldAt >
std::string csv::internals::JsonConverter::row_to_json_array ( size_t  field_count,
FieldAt  field_at,
const std::vector< std::string > &  subset = {} 
) const
inline

Definition at line 118 of file json_converter.hpp.


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