#pragma once
#include "FileRepository.h"
#include "../exceptions/exceptions.h"
#include "../domain/trench.h"
#include <string>
#include <vector>
#include <fstream>
#include <iostream>

class CSVRepository : public FileRepository {
    private:
        std::string _fileName;
        void saveToFile() override;
    public:
        void loadFromFile();
        CSVRepository(std::string fileName);
        ~CSVRepository();
        void open() override;
};