00001 #ifndef HISTORYSAVER_HPP 00002 #define HISTORYSAVER_HPP 00003 00004 #include <vector> 00005 #include <string> 00006 00007 #include "Game/Move.hpp" 00008 #include "Game/Boards/ChessBoard.hpp" 00009 #include "History.hpp" 00010 00011 template <typename DataType> 00012 class HistorySaver 00013 { 00014 private: 00015 00016 public: 00017 00023 static bool save(const std::string& fileName, const DataType& data); 00024 }; 00025 00026 template <> 00027 class HistorySaver<Move<ChessBoard::Coords> > 00028 { 00029 public: 00030 00037 static bool save(const std::string& fileName, const History<Move<ChessBoard::Coords> >& data); 00038 }; 00039 00055 #endif