Static Public Member Functions

HistorySaver< DataType > Class Template Reference

Generic HistorySaver. More...

#include <Game/HistorySaver.hpp>

List of all members.

Static Public Member Functions

static bool save (const std::string &fileName, const DataType &data)

Detailed Description

template<typename DataType>
class HistorySaver< DataType >

Generic HistorySaver.

Specific history saver for chess game moves.

Saves an history in a file

> HistorySaver.hpp Game/HistorySaver.hpp The file is using this format : move1 - move2

See also:
Move

Member Function Documentation

template<typename DataType>
static bool HistorySaver< DataType >::save ( const std::string &  fileName,
const DataType &  data 
) [static]

Save data in a file

Parameters:
fileName the file name where to save the data
data the data to save
Returns:
false if the file could not be written

The documentation for this class was generated from the following file:
 All Classes Functions Variables