44 char* FileData =
nullptr;
47 std::size_t ReadingPos = 0;
50 std::size_t FileLen = 0;
60 bool OpenFile(
const std::string& fileName)
noexcept;
70 bool GetNextVector(std::vector<std::string>& vectorWithNext,
const char& separator)
noexcept;
A class for parsing csv files that provides data in a form similar to generators.
Definition CsvParser.h:40
bool GetNextVector(std::vector< std::string > &vectorWithNext, const char &separator) noexcept
The method for getting the next record in the file. It works by analogy with generators in Python.
Definition CsvParser.cpp:59
~CsvParser() noexcept
Default destructor.
Definition CsvParser.cpp:137
bool OpenFile(const std::string &fileName) noexcept
The method for opening the file.
Definition CsvParser.cpp:35
std::string FormatStringToCsv(const std::string &str) noexcept
A function for converting a string to a csv field format.
Definition CsvParser.cpp:5