Template Class file_parser

Class Documentation

template<typename Output>
class file_parser

Public Functions

inline Output parse(const std::string &path, const std::set<std::string> &keys = {})

Protected Types

using value_parser = std::function<void(const std::string &value, Output &out)>
using value_parsers = std::unordered_map<std::string, value_parser>

Protected Functions

inline file_parser(const char delim, const value_parsers &parsers, remap_function key_remap = nullptr)