00001 #ifndef HISTORYLOADER_HPP 00002 #define HISTORYLOADER_HPP 00003 00004 #include <string> 00005 00006 #include "Game/Move.hpp" 00007 #include "Game/Boards/ChessBoard.hpp" 00008 #include "History.hpp" 00009 00010 template <typename DataType> 00011 class HistoryLoader 00012 { 00013 public: 00014 00020 static History<DataType> load(const std::string& fileName, bool& error); 00021 }; 00022 00023 template <> 00024 class HistoryLoader<Move<ChessBoard::Coords> > 00025 { 00026 public: 00027 00033 static History<Move<ChessBoard::Coords> > load(const std::string& fileName, bool& error); 00034 }; 00035 00046 #endif