/usr/include/osl/game_playing/csaLogger.h is in libosl-dev 0.6.0-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /* csaLogger.h
*/
#ifndef GAME_PLAYING_CSALOGGER_H
#define GAME_PLAYING_CSALOGGER_H
#include "osl/player.h"
#include <iosfwd>
namespace osl
{
class Move;
class Sennichite;
namespace state
{
class SimpleState;
}
namespace search
{
struct MoveWithComment;
}
namespace game_playing
{
class TimeKeeper;
/**
* 棋譜の記録
*/
class CsaLogger
{
std::ostream& output;
public:
explicit 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:
void writeLine(const char *line);
void writeWinner(Player winner);
void writeCurrentDate();
};
} // namespace game_playing
} // namespace osl
#endif /* GAME_PLAYING_CSALOGGER_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End:
|