-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBuf.h
More file actions
44 lines (32 loc) · 807 Bytes
/
Copy pathBuf.h
File metadata and controls
44 lines (32 loc) · 807 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
39
40
41
42
43
// Buf.h: interface for the Buf class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BUF_H__01A513A2_A1E7_11D4_92A3_444553540000__INCLUDED_)
#define AFX_BUF_H__01A513A2_A1E7_11D4_92A3_444553540000__INCLUDED_
#include "Game.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class MoveList;
class Buf
{
public:
Buf();
bool OpenFile(const CString& strFile);
bool Done();
void Next();
bool Create(const CString& fileName);
void Save(const MoveList& aMoveList);
void Close();
public:
Game& getGame();
CString getFilePath();
private:
CFile m_bufFile;
DWORD m_dwRead;
int m_nRecord;
int m_nNoMoves;
Game m_Game;
CString m_strFilePath;
};
#endif // !defined(AFX_BUF_H__01A513A2_A1E7_11D4_92A3_444553540000__INCLUDED_)