From e817ac6bed46737839b592b4308c6d525d70aa2d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 24 Jan 2022 21:03:30 +0100 Subject: Improve PGNP API --- src/pgnp.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pgnp.hpp') diff --git a/src/pgnp.hpp b/src/pgnp.hpp index 53a7a59..492dfc0 100644 --- a/src/pgnp.hpp +++ b/src/pgnp.hpp @@ -29,6 +29,7 @@ public: int GetLength(); /// @brief Dump move and all its variations void Dump(); + void Copy(HalfMove* copy); }; class PGN { @@ -52,7 +53,7 @@ public: std::vector GetTagList(); std::string GetTagValue(std::string); std::string GetResult(); - HalfMove *GetMoves(); + void GetMoves(HalfMove*); private: /// @brief Populate @a tags with by parsing the one starting at location in -- cgit v1.2.3