kakinoki.h
Go to the documentation of this file.
/* kakinoki.h
*/
#ifndef OSL_KAKINOKI_H
#define OSL_KAKINOKI_H
#include "osl/record/record.h"
#include <memory>
#include <string>
#include <iosfwd>
#include <stdexcept>
namespace osl
{
namespace kakinoki
{
Move strToMove(const std::string&, const SimpleState&,
Move last_move=Move());
std::pair<Player,Ptype> strToPiece(const std::string&);
class KakinokiFile : public RecordFile
{
public:
KakinokiFile(const std::string& filename);
~KakinokiFile();
static bool isKakinokiFile(const std::string& filename);
static void parseLine(SimpleState& state, Record& record,
std::string s, CArray<bool,9>& board_parsed);
};
struct KakinokiIOError : public std::runtime_error
{
KakinokiIOError(const std::string& w) : std::runtime_error(w) {
}
};
} // namespace kakinoki
using kakinoki::KakinokiFile;
using kakinoki::KakinokiIOError;
}
#endif /* OSL_KAKINOKI_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::CArray
Definition container.h:20
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::SimpleState
Definition simpleState.h:35
osl::kakinoki::KakinokiFile::isKakinokiFile
static bool isKakinokiFile(const std::string &filename)
Definition kakinoki.cc:258
osl::kakinoki::KakinokiFile::KakinokiFile
KakinokiFile(const std::string &filename)
Definition kakinoki.cc:218
osl::kakinoki::KakinokiFile::~KakinokiFile
~KakinokiFile()
Definition kakinoki.cc:253
osl::kakinoki::KakinokiFile::parseLine
static void parseLine(SimpleState &state, Record &record, std::string s, CArray< bool, 9 > &board_parsed)
Definition kakinoki.cc:21
osl::record::RecordFile
Definition record.h:64
osl::record::RecordFile::record
Record record
Definition record.h:66
osl::kakinoki
Definition kakinoki.h:15
osl::kakinoki::strToMove
Move strToMove(const std::string &, const SimpleState &, Move last_move=Move())
Definition kakinoki.cc:167
osl::kakinoki::strToPiece
std::pair< Player, Ptype > strToPiece(const std::string &)
Definition kakinoki.cc:156
osl
Definition additionalEffect.h:6
std
Definition basic_type.h:1353
record.h
osl::kakinoki::KakinokiIOError::KakinokiIOError
KakinokiIOError(const std::string &w)
Definition kakinoki.h:33
osl::record::Record
Definition record.h:15