Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
Public Member Functions | List of all members
TournamentRunner::IPersistency Class Referenceabstract

The Persistency Interface. More...

#include <persistency_interface.h>

Inheritance diagram for TournamentRunner::IPersistency:
Inheritance graph
[legend]

Public Member Functions

 IPersistency (const IPersistency &)=default
 
 IPersistency (IPersistency &&)=default
 
IPersistency & operator= (const IPersistency &)=default
 
IPersistency & operator= (IPersistency &&)=default
 
virtual void save_profile (const Tournament &tournament_to_save, const std::string &to_file) const =0
 Save a profile. More...
 
virtual void save_profile (const Tournament &tournament_to_save) const =0
 Save the profile to the file currently loaded. More...
 
virtual Tournament load_profile (const std::string &from_file)=0
 Load a profile. More...
 
virtual Tournament load_profile ()=0
 Load the default profile. More...
 

Detailed Description

The Persistency Interface.

Used to save and load tournament data to/from a file.

Member Function Documentation

virtual Tournament TournamentRunner::IPersistency::load_profile ( const std::string &  from_file)
pure virtual

Load a profile.

Parameters
from_filePath to the file it should be loaded from
Returns
The tournament loaded

Implemented in TournamentRunner::Persistency.

Here is the caller graph for this function:

virtual Tournament TournamentRunner::IPersistency::load_profile ( )
pure virtual

Load the default profile.

Returns
The tournament loaded

Implemented in TournamentRunner::Persistency.

virtual void TournamentRunner::IPersistency::save_profile ( const Tournament &  tournament_to_save,
const std::string &  to_file 
) const
pure virtual

Save a profile.

Parameters
tournament_to_saveThe tournament to save
to_filePath to the file it should be saved to

Implemented in TournamentRunner::Persistency.

Here is the caller graph for this function:

virtual void TournamentRunner::IPersistency::save_profile ( const Tournament &  tournament_to_save) const
pure virtual

Save the profile to the file currently loaded.

Parameters
tournament_to_saveThe tournament to save

Implemented in TournamentRunner::Persistency.


The documentation for this class was generated from the following file: