My Project
std
osl
record
kakinoki.h
Go to the documentation of this file.
1
/* kakinoki.h
2
*/
3
#ifndef OSL_KAKINOKI_H
4
#define OSL_KAKINOKI_H
5
6
#include "
osl/record/record.h
"
7
#include <memory>
8
#include <string>
9
#include <iosfwd>
10
#include <stdexcept>
11
12
namespace
osl
13
{
14
namespace
kakinoki
15
{
16
Move
strToMove
(
const
std::string&,
const
SimpleState
&,
17
Move
last_move=
Move
());
18
std::pair<Player,Ptype>
strToPiece
(
const
std::string&);
19
20
class
KakinokiFile
:
public
RecordFile
21
{
22
public
:
23
KakinokiFile
(
const
std::string& filename);
24
~KakinokiFile
();
25
26
static
bool
isKakinokiFile
(
const
std::string& filename);
27
static
void
parseLine
(
SimpleState
& state,
Record
&
record
,
28
std::string s,
CArray<bool,9>
& board_parsed);
29
};
30
31
struct
KakinokiIOError
:
public
std::runtime_error
32
{
33
KakinokiIOError
(
const
std::string& w) :
std
::runtime_error(w) {
34
}
35
};
36
}
// namespace kakinoki
37
using
kakinoki::KakinokiFile;
38
using
kakinoki::KakinokiIOError;
39
}
40
41
#endif
/* OSL_KAKINOKI_H */
42
// ;;; Local Variables:
43
// ;;; mode:c++
44
// ;;; c-basic-offset:2
45
// ;;; End:
osl::kakinoki::KakinokiFile::parseLine
static void parseLine(SimpleState &state, Record &record, std::string s, CArray< bool, 9 > &board_parsed)
Definition:
kakinoki.cc:21
osl::Move
圧縮していない moveの表現 .
Definition:
basic_type.h:1052
osl::kakinoki::KakinokiFile::KakinokiFile
KakinokiFile(const std::string &filename)
Definition:
kakinoki.cc:218
osl::SimpleState
Definition:
simpleState.h:35
record.h
osl::kakinoki::KakinokiIOError::KakinokiIOError
KakinokiIOError(const std::string &w)
Definition:
kakinoki.h:33
osl::record::RecordFile::record
Record record
Definition:
record.h:66
osl::kakinoki::strToMove
Move strToMove(const std::string &, const SimpleState &, Move last_move=Move())
Definition:
kakinoki.cc:167
osl::kakinoki::KakinokiFile::isKakinokiFile
static bool isKakinokiFile(const std::string &filename)
Definition:
kakinoki.cc:258
osl::kakinoki::strToPiece
std::pair< Player, Ptype > strToPiece(const std::string &)
Definition:
kakinoki.cc:156
std
Definition:
basic_type.h:1353
osl::record::RecordFile
Definition:
record.h:64
osl::kakinoki::KakinokiFile::~KakinokiFile
~KakinokiFile()
Definition:
kakinoki.cc:253
osl::CArray
Definition:
container.h:20
osl::kakinoki::KakinokiFile
Definition:
kakinoki.h:21
osl::record::Record
Definition:
record.h:15
osl
Definition:
additionalEffect.h:6
osl::kakinoki::KakinokiIOError
Definition:
kakinoki.h:32
Generated by
1.8.18