Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
persistency.h
1 #ifndef TOURNAMENT_RUNNER_PERSISTENCY_H_
2 #define TOURNAMENT_RUNNER_PERSISTENCY_H_
3 
4 #include <string>
5 
6 #include "tournament_runner/persistency_interface.h"
7 
8 namespace TournamentRunner
9 {
10 
11 class Tournament;
12 
18 class Persistency :
19  public IPersistency
20 {
21 public:
25  Persistency () = default;
26 
31  explicit Persistency (std::string default_path);
32 
37  void save_profile (const Tournament& tournament_to_save,
38  const std::string& to_file) const final;
43  void save_profile (const Tournament& tournament_to_save) const final;
44 
50  Tournament load_profile (const std::string& from_file) final;
51 
57  Tournament load_profile () final;
58 
59 private:
60  std::string current_profile_file_{};
61 
62 };
63 
64 } //namespace TournamentRunner
65 
66 
67 #endif // TOURNAMENT_RUNNER_PERSISTENCY_H_
Persistency()=default
Default Constructor.
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
Tournament load_profile() final
Load the default profile.
Definition: persistency.cpp:61
The Persistency class.
Definition: persistency.h:18
void save_profile(const Tournament &tournament_to_save, const std::string &to_file) const final
Definition: persistency.cpp:28
The Persistency Interface.
Definition: persistency_interface.h:15