pacemaker
3.2.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
#include "pacemaker/io/pacemaker.io_export.h"
10
11
namespace
pacemaker::io
12
{
43
class
CSV
44
{
45
public
:
65
static
auto
PACEMAKER_IO_EXPORT
parse
(
const
std::filesystem::path &filename) -> std::vector<std::vector<std::string>>;
66
67
private
:
85
static
auto
parse_helper(std::istream &stream) -> std::vector<std::vector<std::string>>;
86
};
87
}
// namespace pacemaker::io
88
89
#endif
// PACEMAKER_IO_CSV_HPP_
pacemaker::io::CSV
Stateless utility for parsing CSV files into in-memory records.
Definition
CSV.hpp:44
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:12
include
pacemaker
io
CSV.hpp
Generated by
1.12.0