2022-11-09 16:08:54 +01:00
|
|
|
#pragma once
|
2022-11-08 21:59:56 +01:00
|
|
|
#include <fstream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2022-11-09 22:02:26 +01:00
|
|
|
|
2022-11-08 21:59:56 +01:00
|
|
|
namespace csv {
|
2022-11-09 22:02:26 +01:00
|
|
|
class CsvReader {
|
|
|
|
private:
|
|
|
|
std::ifstream m_stream;
|
2022-11-08 21:59:56 +01:00
|
|
|
|
2022-11-09 22:02:26 +01:00
|
|
|
public:
|
|
|
|
CsvReader(auto stream): m_stream(stream){};
|
|
|
|
~CsvReader() = default;
|
2022-11-08 21:59:56 +01:00
|
|
|
|
2022-11-09 22:02:26 +01:00
|
|
|
bool operator>>(std::vector<std::string>& line);
|
|
|
|
};
|
|
|
|
}
|