Public Member Functions | Private Member Functions | Private Attributes
osl::game_playing::CsaLogger Class Reference

棋譜の記録 More...

#include <csaLogger.h>

List of all members.

Public Member Functions

 CsaLogger (std::ostream &os)
 ~CsaLogger ()
void init (const char *black, const char *white, const state::SimpleState &state)
void pushMove (const Move &move, int seconds)
void pushMove (const search::MoveWithComment &move, int seconds)
void popMove ()
void showTimeLeft (const TimeKeeper &)
void writeComment (const char *comment)
void resign (Player resigned)
void inputError (const char *)
void breakGame ()
void endByRepetition (const Sennichite &)
void endByDeclaration (Player declarer)

Private Member Functions

void writeLine (const char *line)
void writeWinner (Player winner)
void writeCurrentDate ()

Private Attributes

std::ostream & output

Detailed Description

棋譜の記録

Definition at line 26 of file csaLogger.h.


Constructor & Destructor Documentation

osl::game_playing::CsaLogger::CsaLogger ( std::ostream &  os) [explicit]

Definition at line 14 of file csaLogger.cc.

osl::game_playing::CsaLogger::~CsaLogger ( )

Definition at line 19 of file csaLogger.cc.


Member Function Documentation

void osl::game_playing::CsaLogger::breakGame ( )

Definition at line 104 of file csaLogger.cc.

void osl::game_playing::CsaLogger::endByDeclaration ( Player  declarer)

Definition at line 123 of file csaLogger.cc.

void osl::game_playing::CsaLogger::endByRepetition ( const Sennichite result)
void osl::game_playing::CsaLogger::init ( const char *  black,
const char *  white,
const state::SimpleState state 
)

Definition at line 24 of file csaLogger.cc.

void osl::game_playing::CsaLogger::inputError ( const char *  message)

Definition at line 98 of file csaLogger.cc.

void osl::game_playing::CsaLogger::popMove ( )

Definition at line 57 of file csaLogger.cc.

void osl::game_playing::CsaLogger::pushMove ( const Move move,
int  seconds 
)

Definition at line 34 of file csaLogger.cc.

References osl::csaShow().

void osl::game_playing::CsaLogger::pushMove ( const search::MoveWithComment move,
int  seconds 
)
void osl::game_playing::CsaLogger::resign ( Player  resigned)

Definition at line 90 of file csaLogger.cc.

References osl::alt().

void osl::game_playing::CsaLogger::showTimeLeft ( const TimeKeeper keeper)

Definition at line 63 of file csaLogger.cc.

References osl::BLACK, osl::game_playing::TimeKeeper::timeLeft(), and osl::WHITE.

void osl::game_playing::CsaLogger::writeComment ( const char *  comment)

Definition at line 76 of file csaLogger.cc.

void osl::game_playing::CsaLogger::writeCurrentDate ( ) [private]

Definition at line 82 of file csaLogger.cc.

References osl::ctime_r().

void osl::game_playing::CsaLogger::writeLine ( const char *  line) [private]

Definition at line 70 of file csaLogger.cc.

void osl::game_playing::CsaLogger::writeWinner ( Player  winner) [private]

Definition at line 131 of file csaLogger.cc.


Member Data Documentation

std::ostream& osl::game_playing::CsaLogger::output [private]

Definition at line 28 of file csaLogger.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines