Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Defines.h"
- #include <iostream>
- #include <fstream>
- #include <vector>
- class CsvFile
- {
- private:
- std::string path;
- std::fstream::openmode openMode;
- std::fstream file;
- unsigned int size;
- void writeLine(const Point& p);
- std::vector<std::string> split(std::string str, char delim);
- public:
- CsvFile(std::string path, std::string mode);
- ~CsvFile();
- FileError write(const std::vector<Point>& points);
- FileError read(std::vector<Point>& points);
- FileError read(Point&, int idx);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement