My Project
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
osl::ki2::Ki2File Class Reference

「.ki2」という拡張子を持つ2ch形式ファイル. More...

#include <ki2.h>

Inheritance diagram for osl::ki2::Ki2File:
osl::record::RecordFile

Public Types

enum  ParseResult { OK = 0 , Komaochi , Illegal }
 

Public Member Functions

 Ki2File (const std::string &filename, bool verbose=false)
 
- Public Member Functions inherited from osl::record::RecordFile
virtual ~RecordFile ()
 
Record load () const
 
const NumEffectState initialState () const
 
const std::vector< Movemoves () const
 

Static Public Member Functions

static ParseResult parseLine (NumEffectState &, Record &, KanjiMove &, std::string element)
 

Private Attributes

bool verbose
 

Additional Inherited Members

- Protected Attributes inherited from osl::record::RecordFile
Record record
 

Detailed Description

「.ki2」という拡張子を持つ2ch形式ファイル.


ファイルはShift_JIS (Windows-31J)であることが期待され、 内部ではEUC-JPに文字変換される。

Definition at line 21 of file ki2.h.

Member Enumeration Documentation

◆ ParseResult

Enumerator
OK 
Komaochi 
Illegal 

Definition at line 28 of file ki2.h.

Constructor & Destructor Documentation

◆ Ki2File()

osl::ki2::Ki2File::Ki2File ( const std::string &  filename,
bool  verbose = false 
)

Member Function Documentation

◆ parseLine()

osl::ki2::Ki2File::ParseResult osl::ki2::Ki2File::parseLine ( NumEffectState state,
Record record,
KanjiMove kmove,
std::string  element 
)
static

Member Data Documentation

◆ verbose

bool osl::ki2::Ki2File::verbose
private

Definition at line 24 of file ki2.h.

Referenced by Ki2File().


The documentation for this class was generated from the following files: