diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-09-03 20:43:07 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-09-03 20:43:07 +0200 |
commit | 4588ae6ca889306fc5b7c7067540f5eee97ad86f (patch) | |
tree | 9d349c3f1da07b8f7207fd0420dcb6d84caa4007 /src/openvic-dataloader/csv/Parser.cpp | |
parent | f55e1fc6090854dab49f994c41644a6cd86a5d44 (diff) |
Add csv::Parser.get_lines() implementation
Change csv::Parser.get_lines() return type to const ref vector
Diffstat (limited to 'src/openvic-dataloader/csv/Parser.cpp')
-rw-r--r-- | src/openvic-dataloader/csv/Parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvic-dataloader/csv/Parser.cpp b/src/openvic-dataloader/csv/Parser.cpp index 8a99085..45f3142 100644 --- a/src/openvic-dataloader/csv/Parser.cpp +++ b/src/openvic-dataloader/csv/Parser.cpp @@ -148,4 +148,8 @@ bool Parser::parse_csv() { } _lines = std::move(_buffer_handler->get_lines()); return true; +} + +const std::vector<csv::LineObject>& Parser::get_lines() const { + return _lines; }
\ No newline at end of file |