Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
persistency_interface.h
1 #ifndef TOURNAMENT_RUNNER_PERSISTENCY_INTERFACE_H_
2 #define TOURNAMENT_RUNNER_PERSISTENCY_INTERFACE_H_
3 
4 #include <string>
5 
6 namespace TournamentRunner
7 {
8 
9 class Tournament;
10 
16 {
17 public:
18 
19  IPersistency () = default;
20  IPersistency (const IPersistency&) = default;
21  IPersistency (IPersistency&&) = default;
22  IPersistency& operator=(const IPersistency&) = default;
23  IPersistency& operator=(IPersistency&&) = default;
24  virtual ~IPersistency () {}
25 
26 
32  virtual void save_profile (const Tournament& tournament_to_save,
33  const std::string& to_file) const = 0;
34 
39  virtual void save_profile (const Tournament& tournament_to_save) const = 0;
40 
46  virtual Tournament load_profile (const std::string& from_file) = 0;
47 
52  virtual Tournament load_profile () = 0;
53 
54 };
55 
56 } //namespace TournamentRunner
57 
58 
59 #endif // TOURNAMENT_RUNNER_PERSISTENCY_INTERFACE_H_
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
virtual void save_profile(const Tournament &tournament_to_save, const std::string &to_file) const =0
Save a profile.
virtual Tournament load_profile()=0
Load the default profile.
The Persistency Interface.
Definition: persistency_interface.h:15