#include <fastmm/backtest/csv_source.hpp>
|
| static CsvSource | from_text (std::string text, VenueId venue=VenueId{0}) |
| | Parses in-memory text (tests).
|
| |
| static bool | parse_row (std::string_view line, Row &out) |
| | Parses one CSV line into a Row; false for blank/comment lines. Throws on bad fields.
|
| |
◆ CsvSource()
| fastmm::bt::CsvSource::CsvSource |
( |
const std::string & |
path, |
|
|
VenueId |
venue = VenueId{0} |
|
) |
| |
|
explicit |
Throws std::runtime_error when the file cannot be read or a row is malformed.
◆ from_text()
Parses in-memory text (tests).
◆ next()
◆ reset()
| void fastmm::bt::CsvSource::reset |
( |
| ) |
|
|
override |
◆ start_ts()
| Timestamp fastmm::bt::CsvSource::start_ts |
( |
| ) |
const |
|
inlineoverride |
◆ rows()
| std::size_t fastmm::bt::CsvSource::rows |
( |
| ) |
const |
|
inlinenoexcept |
◆ parse_row()
| static bool fastmm::bt::CsvSource::parse_row |
( |
std::string_view |
line, |
|
|
Row & |
out |
|
) |
| |
|
static |
Parses one CSV line into a Row; false for blank/comment lines. Throws on bad fields.