Improve BaseTab implementation for PGN files

This commit is contained in:
Loic Guegan 2022-02-24 12:09:21 +01:00
parent 32a0b3e31f
commit 40c6df0e7c
4 changed files with 59 additions and 11 deletions

View file

@ -1,10 +1,15 @@
#include "GameBase.hpp"
#include "pgnp.hpp"
class PGNGameBase : public GameBase {
pgnp::PGN *pgn;
bool hasNextGame;
void ParseNextGame();
public:
PGNGameBase(std::string pgn_file);
bool HasNextGame() { return (false); }
bool HasNextGame();
Game *GetGame(std::uint32_t id) { return (new Game()); };
Game *GetNextGame() { return (new Game()); };
Game *GetNextGame();
};