Nano v1.0.0
Simulating Natural Selection
statistics_manager.h
Go to the documentation of this file.
1#pragma once
2// clang-format off
3#include "pch_bll.h"
4#include "simulation_data.h"
5// clang-format on
6
8{
10{
11 public:
12 static std::vector<std::string> getStatisticsNames();
13
14 static void saveStatistic(const std::string &fileName, const std::vector<ss::types::Cycle> &cycles);
15
16 static void saveStatistic(const std::vector<ss::types::Cycle> &cycles);
17
18 static std::vector<ss::types::Cycle> getStatisticFrom(const std::string &fileName);
19};
20} // namespace ss::bll::statistics
Definition: statistics_manager.h:10
static void saveStatistic(const std::string &fileName, const std::vector< ss::types::Cycle > &cycles)
Save generation data into a .json file.
Definition: statistics_manager.cpp:21
static std::vector< ss::types::Cycle > getStatisticFrom(const std::string &fileName)
Getter a statistic data function.
Definition: statistics_manager.cpp:41
static std::vector< std::string > getStatisticsNames()
Getter files names' function.
Definition: statistics_manager.cpp:11
Definition: statistics_manager.h:8