-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSgf.h
More file actions
38 lines (27 loc) · 809 Bytes
/
Copy pathSgf.h
File metadata and controls
38 lines (27 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#if !defined(AFX_SGF_H__INCLUDED_)
#define AFX_SGF_H__INCLUDED_
#include "Game.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Sgf
{
public:
Sgf();
bool OpenFile(const CString& strFile, bool multipleGames);
Game& getGame();
CString getFilePath();
static bool equalComment(const CString& strComment1, const CString& strComment2);
private:
void Parse();
CString PreProcess(const CString& strContent);
CString FindString(const CString& strContent, const CString& strBegin, const CString& strEnd);
CString ParseCommand(const CString& strContent, const CString& strCmd);
static void swapComment(CString& strComment);
private:
CStdioFile m_sgfFile;
Game m_Game;
CString m_strFilePath;
bool mMultipleGames;
};
#endif // !defined(AFX_SGF_H__INCLUDED_)