|
My Project
|
「.ipx」という拡張子を持つ棋泉形式ファイル. More...
#include <kisen.h>
Public Types | |
| enum | { BY_PARITY =0 , BLACK_WIN =1 , WHITE_WIN =2 , SENNNICHITE =3 , JISHOGI =4 , BLACK_WIN_256 =5 , WHITE_WIN_256 =6 , SENNNICHITE_256 =7 , JISHOGI_256 =8 } |
Public Member Functions | |
| KisenIpxFile (std::string const &filename) | |
| ~KisenIpxFile () | |
| size_t | size () const |
| std::string | player (size_t index, Player pl) |
| std::string | title (size_t index, Player pl) |
| unsigned int | rating (size_t index, Player pl) |
| unsigned int | result (size_t index) |
| const std::string & | fileName () const |
| boost::gregorian::date | startDate (size_t index) |
| 開始日の年月日を返す | |
Private Attributes | |
| std::ifstream | ifs |
| size_t | number_of_games |
| const std::string | file_name |
「.ipx」という拡張子を持つ棋泉形式ファイル.
対局者に関する情報(「プレイヤー名」,「レーティング」) が分かっている.
1 record = 256Bytesの固定長が並ぶファイル。
| anonymous enum |
|
explicit |
Definition at line 130 of file kisen.cc.
References file_name, ifs, and number_of_games.
|
inline |
| std::string osl::record::KisenIpxFile::player | ( | size_t | index, |
| Player | pl ) |
Definition at line 139 of file kisen.cc.
References ifs, size(), osl::misc::sjis2euc(), and osl::WHITE.
| unsigned int osl::record::KisenIpxFile::rating | ( | size_t | index, |
| Player | pl ) |
Definition at line 152 of file kisen.cc.
References ifs, size(), and osl::WHITE.
Referenced by osl::rating::BradleyTerry::accumulate().
| unsigned int osl::record::KisenIpxFile::result | ( | size_t | index | ) |
|
inline |
Definition at line 86 of file kisen.h.
References number_of_games.
Referenced by player(), rating(), result(), startDate(), and title().
| boost::gregorian::date osl::record::KisenIpxFile::startDate | ( | size_t | index | ) |
| std::string osl::record::KisenIpxFile::title | ( | size_t | index, |
| Player | pl ) |
Definition at line 170 of file kisen.cc.
References ifs, size(), osl::misc::sjis2euc(), and osl::WHITE.
|
private |
Definition at line 70 of file kisen.h.
Referenced by fileName(), and KisenIpxFile().
|
private |
Definition at line 68 of file kisen.h.
Referenced by KisenIpxFile(), player(), rating(), result(), startDate(), and title().
|
private |
Definition at line 69 of file kisen.h.
Referenced by KisenIpxFile(), and size().