My Project
osl::csa Namespace Reference

CSA形式. More...

Classes

struct  CsaIOError
class  CsaFileMinimal
class  CsaString

Functions

const Move strToMove (const std::string &s, const SimpleState &st)
Player charToPlayer (char c)
const Square strToPos (const std::string &s)
Ptype strToPtype (const std::string &s)
const std::string show (Move)
const std::string fancyShow (Move)
const std::string show (Square)
const std::string show (Ptype)
const std::string show (Piece)
const std::string show (Player)
const std::string show (const Move *first, const Move *last)
const std::string show (Move, std::string &buf)
const std::string show (Square, std::string &buf, size_t offset=0)
const std::string show (Ptype, std::string &buf, size_t offset=0)
const std::string show (Player, std::string &buf, size_t offset=0)

Detailed Description

Function Documentation

◆ charToPlayer()

osl::Player osl::csa::charToPlayer ( char c)

Definition at line 17 of file csa.cc.

References osl::BLACK, and osl::WHITE.

Referenced by osl::csa::CsaFileMinimal::parseLine(), osl::record::CsaFile::parseLine(), and strToMove().

◆ fancyShow()

const std::string osl::csa::fancyShow ( Move move)

◆ show() [1/10]

const std::string osl::csa::show ( const Move * first,
const Move * last )

Definition at line 188 of file csa.cc.

References osl::Move::isInvalid(), and show().

◆ show() [2/10]

◆ show() [3/10]

const std::string osl::csa::show ( Move move,
std::string & buf )

◆ show() [4/10]

◆ show() [5/10]

const std::string osl::csa::show ( Player player)

Definition at line 153 of file csa.cc.

References show().

◆ show() [6/10]

const std::string osl::csa::show ( Player player,
std::string & buf,
size_t offset = 0 )

Definition at line 79 of file csa.cc.

References osl::BLACK.

◆ show() [7/10]

const std::string osl::csa::show ( Ptype ptype)

Definition at line 167 of file csa.cc.

References show().

◆ show() [8/10]

const std::string osl::csa::show ( Ptype ptype,
std::string & buf,
size_t offset = 0 )

Definition at line 122 of file csa.cc.

References osl::Ptype_Table.

◆ show() [9/10]

const std::string osl::csa::show ( Square position)

Definition at line 160 of file csa.cc.

References show().

◆ show() [10/10]

const std::string osl::csa::show ( Square pos,
std::string & buf,
size_t offset = 0 )

Definition at line 105 of file csa.cc.

References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().

◆ strToMove()

◆ strToPos()

const osl::Square osl::csa::strToPos ( const std::string & s)

Definition at line 27 of file csa.cc.

References osl::Square::STAND().

Referenced by osl::csa::CsaFileMinimal::parseLine(), and strToMove().

◆ strToPtype()

osl::Ptype osl::csa::strToPtype ( const std::string & s)

Definition at line 37 of file csa.cc.

References osl::Ptype_Table.

Referenced by osl::csa::CsaFileMinimal::parseLine(), and strToMove().