ki2.h
Go to the documentation of this file.
/* ki2.h
*/
#ifndef OSL_RECORD_KI2_H
#define OSL_RECORD_KI2_H
#include "osl/record/record.h"
#include "osl/record/kanjiMove.h"
#include <string>
#include <iosfwd>
namespace osl
{
namespace ki2
{
class Ki2File : public RecordFile
{
private:
bool verbose;
public:
Ki2File(const std::string& filename, bool verbose=false);
enum ParseResult {
OK = 0, Komaochi, Illegal,
};
static ParseResult parseLine(NumEffectState&, Record&, KanjiMove&, std::string element);
};
const std::string show(Square);
const std::string show(Square cur, Square prev);
const std::string show(Ptype);
const std::string showPromote(bool);
const std::string show(Move move, const NumEffectState& state, Move prev=Move());
const std::string show(const Move *first, const Move *last, const NumEffectState& state, Move prev=Move());
const std::string show(const Move *first, const Move *last, const char *threatmate_first, const char *threatmate_last, const NumEffectState& state, Move prev=Move());
} // namespace ki2
using ki2::Ki2File;
} // namespace osl
#endif /* OSL_RECORD_KI2_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::Square
Definition basic_type.h:532
osl::ki2::Ki2File::verbose
bool verbose
Definition ki2.h:24
osl::ki2::Ki2File::parseLine
static ParseResult parseLine(NumEffectState &, Record &, KanjiMove &, std::string element)
Definition ki2.cc:12
osl::ki2::Ki2File::Ki2File
Ki2File(const std::string &filename, bool verbose=false)
Definition ki2.cc:92
osl::ki2::Ki2File::ParseResult
ParseResult
Definition ki2.h:28
osl::ki2::Ki2File::Komaochi
@ Komaochi
Definition ki2.h:29
osl::ki2::Ki2File::Illegal
@ Illegal
Definition ki2.h:29
osl::ki2::Ki2File::OK
@ OK
Definition ki2.h:29
osl::record::KanjiMove
Parse kanji records such as "７六歩", the style of which is generally used to write Shogi records in Jap...
Definition kanjiMove.h:20
osl::record::RecordFile
Definition record.h:64
kanjiMove.h
osl::ki2
Definition ki2.h:15
osl::ki2::showPromote
const std::string showPromote(bool)
Definition ki2.cc:155
osl::ki2::show
const std::string show(Square)
Definition ki2.cc:133
osl
Definition additionalEffect.h:6
osl::Ptype
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84
record.h
osl::record::Record
Definition record.h:15