#include <statistics_store.h>
◆ getFolderPath()
std::string ss::dal::StatisticsStore::getFolderPath |
( |
| ) |
|
|
staticprivate |
Get the appropriate folder path for current directory.
- Returns
- std::string. Folder path.
◆ getStatisticFrom()
std::vector< ss::types::Cycle > ss::dal::StatisticsStore::getStatisticFrom |
( |
const std::string & |
fileName | ) |
|
|
static |
Getter a statistic data function.
The function gets the generation data from saved in the .json file.
- Parameters
-
fileName | The file which holds needed generation data. |
- Returns
- An array of cycles which is a generation.
◆ getStatisticsNames()
std::vector< std::string > ss::dal::StatisticsStore::getStatisticsNames |
( |
| ) |
|
|
static |
Getter files names' function.
The function searches for a file with a .json extension and gets its name.
- Returns
- An array of names
◆ saveStatisticTo() [1/2]
void ss::dal::StatisticsStore::saveStatisticTo |
( |
const std::string & |
fileName, |
|
|
const std::vector< ss::types::Cycle > & |
cycles |
|
) |
| |
|
static |
Save generation data into a .json file.
The functions saves a generation data into a .json file using a user chosen name as a name of the file.
- Parameters
-
fileName | A file name which the data will be saved into. |
cycles | A generation data. |
◆ saveStatisticTo() [2/2]
void ss::dal::StatisticsStore::saveStatisticTo |
( |
const std::vector< ss::types::Cycle > & |
cycles | ) |
|
|
static |
Save generation data into a .json file.
The functions saves a generation data into a .json file using a timestamp as a name of the file.
- Parameters
-
The documentation for this class was generated from the following files: