11#include "../../settings/enum_definitions.hpp"
12#include "../../utility/free_functions.hpp"
27 for (
auto &hist : histograms)
28 file << hist <<
"\n\n";
35 for (
const auto st_i : cell.viewStates())
40template <settings::cellDataStorageLevel N>
51template <settings::cellDataStorageLevel N>
65 inline static void writeData(
auto &cell,
const std::string &prefix,
auto &storage)
67 constexpr auto suffix =
"cellData.csv";
68 auto file =
free::openFile(cell, PathVar::results, prefix, suffix);
69 writeDataImpl<N>(file, cell, storage);
Definition: Histogram.hpp:31
void write_data(std::ofstream &file, std::vector< double > &data, size_t N=1)
Definition: free_functions.hpp:49
std::ofstream openFile(auto &SU, const auto &folder, const std::string &prefix, const std::string &suffix)
Definition: free_functions.hpp:245
constexpr bool writeCumulativeData
Definition: derived_settings.hpp:20
Slide namespace contains all the types, classes, and functions for the simulation framework.
Definition: Cell.hpp:27
void writeData(std::ofstream &file, std::span< Histogram<> > histograms)
Definition: CellDataWriter.hpp:25
void writeDataImpl(std::ofstream &file, auto &cell, auto &dataStorage)
Definition: CellDataWriter.hpp:41
void writeVarAndStates(std::ofstream &file, auto &cell)
Definition: CellDataWriter.hpp:32
Definition: CellDataWriter.hpp:53
static void writeData(auto &cell, const std::string &prefix, auto &storage)
Definition: CellDataWriter.hpp:65