Used to open PGN files.
More...
#include <PGNGameBase.hpp>
|
| PGNGameBase (std::string pgn_file) |
|
std::shared_ptr< Game > | GetGame (std::uint32_t id) |
|
bool | NextGame () |
|
std::shared_ptr< Game > | GetCurrentGame () |
|
std::string | GetTag (std::string tag) |
|
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) |
|
void | Reset () |
|
void | Export (std::shared_ptr< GameBase > base) |
| Save the given base into current base format (export) More...
|
|
std::string | GetFormat () |
|
std::string | GetFilePath () |
|
virtual std::shared_ptr< Game > | GetGame (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< Game > | GetCurrentGame ()=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...
|
|
|
static std::string | GetMovesPGN (HalfMove *m, bool needDots) |
|
static std::string | GetPGN (std::shared_ptr< Game > g) |
|
static void | CreateDatabaseFile (std::string path) |
|
|
pgnp::PGN * | pgn |
|
bool | hasNextGame |
|
std::string | file |
|
◆ Export()
void PGNGameBase::Export |
( |
std::shared_ptr< GameBase > |
base | ) |
|
|
virtual |
Save the given base into current base format (export)
- Parameters
-
Implements GameBase.
◆ GetCurrentGame()
std::shared_ptr< Game > PGNGameBase::GetCurrentGame |
( |
| ) |
|
|
virtual |
◆ GetFilePath()
std::string PGNGameBase::GetFilePath |
( |
| ) |
|
|
inlinevirtual |
◆ GetFormat()
std::string PGNGameBase::GetFormat |
( |
| ) |
|
|
inlinevirtual |
◆ GetGame()
std::shared_ptr< Game > PGNGameBase::GetGame |
( |
std::uint32_t |
id | ) |
|
|
virtual |
◆ GetTag()
std::string PGNGameBase::GetTag |
( |
std::string |
tag | ) |
|
|
virtual |
◆ NextGame()
bool PGNGameBase::NextGame |
( |
| ) |
|
|
virtual |
◆ Reset()
void PGNGameBase::Reset |
( |
| ) |
|
|
virtual |
◆ Save()
void PGNGameBase::Save |
( |
std::vector< std::uint32_t > |
to_delete, |
|
|
std::vector< std::string > |
databases_to_import, |
|
|
std::vector< std::shared_ptr< Game > > |
games_to_import |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files:
- /home/loic/Documents/Git/ochess/src/base_tab/gamebase/PGNGameBase.hpp
- /home/loic/Documents/Git/ochess/src/base_tab/gamebase/PGNGameBase.cpp