Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
game_statistics_output_file.h
Go to the documentation of this file.
1#ifndef GAME_STATISTICS_OUTPUT_FILE_H
2#define GAME_STATISTICS_OUTPUT_FILE_H
3
4#include "ccfwd.h"
5
6#include <string>
7#include <vector>
8
11{
12public:
13 game_statistics_output_file(const std::string& filename);
14
15 void add_to_file(const game_controller& g);
16
17private:
18
19 std::string m_filename;
20};
21
23std::string get_column_headers_as_str();
24
26
27
28// No templates, to reduce compile-time
29std::string to_comma_seperated_str(const std::vector<double>& v);
30
31// No templates, to reduce compile-time
32std::string to_comma_seperated_str(const std::vector<std::string>& v);
33
34
35#endif // GAME_STATISTICS_OUTPUT_FILE_H
36
The class that acts as a controller for game}.
Definition game_controller.h:31
File to save the game statistics too.
Definition game_statistics_output_file.h:11
void add_to_file(const game_controller &g)
Definition game_statistics_output_file.cpp:18
std::string to_comma_seperated_str(const std::vector< double > &v)
Definition game_statistics_output_file.cpp:78
std::string get_column_headers_as_str()
Get the column headers as one, comma-seperated string.
Definition game_statistics_output_file.cpp:25
void test_game_statistics_output_file()
Definition game_statistics_output_file.cpp:30