4#include <unordered_map>
14 using ColNamesPtr = std::shared_ptr<ColNames>;
15 using ConstColNamesPtr = std::shared_ptr<const ColNames>;
27 ColNames(
const std::vector<std::string>& names) {
31 const std::vector<std::string>& get_col_names()
const noexcept;
32 void set_col_names(
const std::vector<std::string>&);
40 bool empty()
const noexcept {
return this->col_names.empty(); }
41 size_t size()
const noexcept;
47 std::vector<std::string> col_names;
48 std::unordered_map<std::string, size_t> col_pos;
A standalone header file containing shared code.
The all encompassing namespace.
ColumnNamePolicy
Determines how column name lookups are performed.
@ EXACT
Case-sensitive match (default)
std::string_view string_view
The string_view class used by this library.
A data structure for handling column name information.
const std::string & operator[](size_t i) const
Retrieve column name by index.
void set_policy(csv::ColumnNamePolicy policy)
Sets the column name lookup policy.