OChess v0.0.2
Programmer's Manual
GameBase Class Referenceabstract

Represent the interface that each database type (such as PGNGameBase) must follow to be accessible in OChess. More...

#include <GameBase.hpp>

Inheritance diagram for GameBase:
PGNGameBase

Public Member Functions

virtual std::shared_ptr< GameGetGame (std::uint32_t id)=0
 
virtual void Save (std::vector< std::uint32_t > to_delete, std::vector< std::string > databases_to_import, std::vector< std::shared_ptr< Game > > games_to_import)=0
 
virtual std::shared_ptr< GameGetCurrentGame ()=0
 
virtual bool NextGame ()=0
 
virtual std::string GetTag (std::string tag)=0
 
virtual void Reset ()=0
 
virtual std::string GetFormat ()=0
 
virtual std::string GetFilePath ()=0
 
virtual void Export (std::shared_ptr< GameBase > base)=0
 Save the given base into current base format (export) More...
 

Detailed Description

Represent the interface that each database type (such as PGNGameBase) must follow to be accessible in OChess.

Member Function Documentation

◆ Export()

virtual void GameBase::Export ( std::shared_ptr< GameBase base)
pure virtual

Save the given base into current base format (export)

Parameters
base

Implemented in PGNGameBase.


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