5#include <boost/algorithm/string.hpp>
12#include <unordered_map>
13#include <unordered_set>
24 std::string delimeter;
30 CSVWriter(std::string filename, std::string delm =
",");
37 void printCSV(
int rows,
int cols, std::vector<int> statusCells);
38 void printCSVDouble(
int rows,
int cols, std::vector<double> network);
39 void printCSVDouble_V2(
int rows,
int cols, std::vector<double> network);
41 printASCII(
int rows,
int cols,
double xllcorner,
double yllcorner,
int cellside, std::vector<float> statusCells);
43 printASCIIInt(
int rows,
int cols,
double xllcorner,
double yllcorner,
int cellside, std::vector<int> statusCells);
44 void asciiHeader(
int rows,
int cols,
double xllcorner,
double yllcorner,
int cellside);
45 void printWeather(std::vector<std::string> weatherHistory);
46 void printIgnitions(std::unordered_map<int, int> ignitionsHistory);
47 void printCSV_V2(
int rows,
int cols, std::vector<int> statusCells);
49 void MakeDir(std::string pathPlot);
void addDatainRow(T first, T last)
Writes a row of data to a file Takes a range of values and appends them as a single row to the output...
Definition WriteCSV.cpp:48
void printWeather(std::vector< std::string > weatherHistory)
writes the weather file history onto an output file
Definition WriteCSV.cpp:320
void printIgnitions(std::unordered_map< int, int > ignitionsHistory)
writes the ignition point history onto an output file
Definition WriteCSV.cpp:340
void printASCIIInt(int rows, int cols, double xllcorner, double yllcorner, int cellside, std::vector< int > statusCells)
Writes a raster layer with int data in ASCII format onto a file.
Definition WriteCSV.cpp:285
void printASCII(int rows, int cols, double xllcorner, double yllcorner, int cellside, std::vector< float > statusCells)
Writes a raster layer with float data in ASCII format onto a file.
Definition WriteCSV.cpp:243
void printCSV(int rows, int cols, std::vector< int > statusCells)
Writes a 2D grid of cell statuses to a CSV file.
Definition WriteCSV.cpp:134
void MakeDir(std::string pathPlot)
Creates the directory for a given path.
Definition WriteCSV.cpp:394
void asciiHeader(int rows, int cols, double xllcorner, double yllcorner, int cellside)
Writes the ascii header onto a raster file.
Definition WriteCSV.cpp:81