diff options
-rw-r--r-- | include/openvic-dataloader/csv/Parser.hpp | 2 | ||||
-rw-r--r-- | src/openvic-dataloader/csv/Parser.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/openvic-dataloader/csv/Parser.hpp b/include/openvic-dataloader/csv/Parser.hpp index 3497864..0bd0670 100644 --- a/include/openvic-dataloader/csv/Parser.hpp +++ b/include/openvic-dataloader/csv/Parser.hpp @@ -24,7 +24,7 @@ namespace ovdl::csv { bool parse_csv(); - const std::vector<csv::LineObject> get_lines() const; + const std::vector<csv::LineObject>& get_lines() const; Parser(Parser&&); Parser& operator=(Parser&&); 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 |