All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpeningBookConverter Class Reference

#include <openingBookConverter.h>

Public Member Functions

 OpeningBookConverter (const char *filename)
 
 ~OpeningBookConverter ()
 
void write (const char *filename)
 
void writeInNewFormat (const char *filename)
 
void writeInNewEditFormat (const char *filename)
 

Private Member Functions

int readInt (std::ifstream &ifs)
 
void writeInt (std::ofstream &ofs, int n)
 
void writeInNewFormat (std::ofstream &ofs)
 

Private Attributes

osl::vector< OBStatestates
 
osl::vector
< osl::record::opening::OBMove
moves
 

Detailed Description

Definition at line 23 of file openingBookConverter.h.

Constructor & Destructor Documentation

OpeningBookConverter::OpeningBookConverter ( const char *  filename)

Definition at line 9 of file openingBookConverter.cc.

References osl::Move::makeDirect(), moves, osl::record::readInt(), and states.

OpeningBookConverter::~OpeningBookConverter ( )
inline

Definition at line 29 of file openingBookConverter.h.

Member Function Documentation

int OpeningBookConverter::readInt ( std::ifstream &  ifs)
private
void OpeningBookConverter::write ( const char *  filename)

Definition at line 33 of file openingBookConverter.cc.

References moves, states, and osl::record::writeInt().

void OpeningBookConverter::writeInNewEditFormat ( const char *  filename)
void OpeningBookConverter::writeInNewFormat ( const char *  filename)

Definition at line 104 of file openingBookConverter.cc.

Referenced by writeInNewEditFormat().

void OpeningBookConverter::writeInNewFormat ( std::ofstream &  ofs)
private
void OpeningBookConverter::writeInt ( std::ofstream &  ofs,
int  n 
)
private

Member Data Documentation

osl::vector<osl::record::opening::OBMove> OpeningBookConverter::moves
private
osl::vector<OBState> OpeningBookConverter::states
private

The documentation for this class was generated from the following files: