MVault 1.0.0
Simple c++ database
|
A class for parsing csv files that provides data in a form similar to generators. More...
#include <CsvParser.h>
Public Member Functions | |
CsvParser () noexcept | |
Default constructor. | |
CsvParser (const CsvParser &other) noexcept=delete | |
Deleted copy constructor. | |
CsvParser (CsvParser &&other) noexcept=delete | |
Deleted move constructor. | |
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. | |
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. | |
~CsvParser () noexcept=default | |
Default destructor. | |
A class for parsing csv files that provides data in a form similar to generators.
|
noexcept |
Default constructor.
Deleted copy constructor.
[in] | other | object to copy |
|
deletenoexcept |
Deleted move constructor.
[in] | other | object to move |
|
noexcept |
The method for getting the next record in the file. It works by analogy with generators in Python.
[out] | vectorWithNext | vector with all fields in the record |
[in] | separator | the symbol used to separate the records in the file |
The method for opening the file.
[in] | fileName | The name of the file to open |
Deleted assignment operator.
[in] | other | object to copy |
Deleted move assignment operator.
[in] | other | object to move |