pacemaker
3.0.3
COM automation for people with deadlines and a hatred of GUIs
Loading...
Searching...
No Matches
CSV.hpp
Go to the documentation of this file.
1
#ifndef PACEMAKER_IO_CSV_HPP_
2
#define PACEMAKER_IO_CSV_HPP_
3
4
#include <filesystem>
5
#include <fstream>
6
#include <string>
7
#include <vector>
8
9
namespace
pacemaker::io
10
{
41
class
CSV
42
{
43
public
:
63
static
auto
parse
(
const
std::filesystem::path &filename) -> std::vector<std::vector<std::string>>;
64
65
private
:
83
static
auto
parse_helper(std::istream &stream) -> std::vector<std::vector<std::string>>;
84
};
85
}
// namespace pacemaker::io
86
87
#endif
// PACEMAKER_IO_CSV_HPP_
pacemaker::io::CSV
Stateless utility for parsing CSV files into in-memory records.
Definition
CSV.hpp:42
pacemaker::io::CSV::parse
static auto parse(const std::filesystem::path &filename) -> std::vector< std::vector< std::string > >
Parses a CSV file from disk into a vector of records.
pacemaker::io
Definition
CSV.hpp:10
include
pacemaker
io
CSV.hpp
Generated by
1.12.0