6#include "StreamFileReader.h"
87 bool OpenFile(
const std::string& fileName)
noexcept;
97 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
CsvParser(const CsvParser &other) noexcept=delete
Deleted copy constructor.
~CsvParser() noexcept=default
Default destructor.
CsvParser() noexcept
Default constructor.
Definition CsvParser.cpp:35
CsvParser(CsvParser &&other) noexcept=delete
Deleted move constructor.
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:42
CsvParser & operator=(const CsvParser &other) noexcept=delete
Deleted assignment operator.
CsvParser & operator=(CsvParser &&other) noexcept=delete
Deleted move assignment operator.
bool OpenFile(const std::string &fileName) noexcept
The method for opening the file.
Definition CsvParser.cpp:37
A class for reading files as a stream.
Definition StreamFileReader.h:28
std::string FormatStringToCsv(const std::string &str) noexcept
A function for converting a string to a csv field format.
Definition CsvParser.cpp:5