「.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 | 
| const std::string | getPlayer (size_t index, Player pl) | 
| const std::string | getTitle (size_t index, Player pl) | 
| unsigned int | getRating (size_t index, Player pl) | 
| unsigned int | getResult (size_t index) | 
| const std::string & | getFileName () const | 
| boost::gregorian::date | getStartDate (size_t index) | 
| 開始日の年月日を返す  More... | |
| Private Attributes | |
| std::ifstream | ifs | 
| size_t | numberOfGames | 
| const std::string | file_name | 
「.ipx」という拡張子を持つ棋泉形式ファイル.
対局者に関する情報(「プレイヤー名」,「レーティング」) が分かっている.
1 record = 256Bytesの固定長が並ぶファイル。
| anonymous enum | 
| 
 | explicit | 
Definition at line 135 of file kisen.cc.
References ifs, and numberOfGames.
| 
 | inline | 
| const std::string osl::record::KisenIpxFile::getPlayer | ( | size_t | index, | 
| Player | pl | ||
| ) | 
Definition at line 144 of file kisen.cc.
References ifs, moves, size(), osl::misc::sjis2euc(), and osl::WHITE.
| unsigned int osl::record::KisenIpxFile::getRating | ( | size_t | index, | 
| Player | pl | ||
| ) | 
| unsigned int osl::record::KisenIpxFile::getResult | ( | size_t | index) | 
| boost::gregorian::date osl::record::KisenIpxFile::getStartDate | ( | size_t | index) | 
| const std::string osl::record::KisenIpxFile::getTitle | ( | size_t | index, | 
| Player | pl | ||
| ) | 
Definition at line 177 of file kisen.cc.
References ifs, moves, size(), osl::misc::sjis2euc(), and osl::WHITE.
| 
 | inline | 
Definition at line 101 of file kisen.h.
References numberOfGames.
Referenced by getPlayer(), getRating(), getResult(), getStartDate(), and getTitle().
| 
 | private | 
Definition at line 85 of file kisen.h.
Referenced by getFileName().
| 
 | private | 
Definition at line 83 of file kisen.h.
Referenced by getPlayer(), getRating(), getResult(), getStartDate(), getTitle(), and KisenIpxFile().
| 
 | private | 
Definition at line 84 of file kisen.h.
Referenced by KisenIpxFile(), and size().
 1.8.4
 1.8.4