Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #pragma once
  2. #include "Defines.h"
  3. #include <iostream>
  4. #include <fstream>
  5. #include <vector>
  6. class CsvFile
  7. {
  8. private:
  9. std::string path;
  10. std::fstream::openmode openMode;
  11. std::fstream file;
  12. unsigned int size;
  13. void writeLine(const Point& p);
  14. std::vector<std::string> split(std::string str, char delim);
  15. public:
  16. CsvFile(std::string path, std::string mode);
  17. ~CsvFile();
  18. FileError write(const std::vector<Point>& points);
  19. FileError read(std::vector<Point>& points);
  20. FileError read(Point&, int idx);
  21.  
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement