Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PgnGame.h
Go to the documentation of this file.
1
// cwchessboard -- A C++ chessboard tool set
2
//
3
//! @file PgnGame.h This file contains the declaration of class PgnGame.
4
//
5
// Copyright (C) 2008 - 2010, by
6
//
7
// Carlo Wood, Run on IRC <carlo@alinoe.com>
8
// RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
9
// Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
10
//
11
// This program is free software: you can redistribute it and/or modify
12
// it under the terms of the GNU General Public License as published by
13
// the Free Software Foundation, either version 2 of the License, or
14
// (at your option) any later version.
15
//
16
// This program is distributed in the hope that it will be useful,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
// GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with this program. If not, see <http://www.gnu.org/licenses/>.
23
24
#ifndef PGNGAME_H
25
#define PGNGAME_H
26
27
#ifndef USE_PCH
28
#include <stdint.h>
29
#endif
30
31
#include "
PgnDatabase.h
"
32
33
namespace
cwchess
{
34
namespace
pgn {
35
36
class
Game
:
public
Database
{
37
private
:
38
uint16_t M_index;
//!< The index of the game into the PgnDatabase
39
40
protected
:
41
virtual
void
update_index(uint16_t index) { M_index = index; }
42
};
43
44
}
// namespace pgn
45
}
// namespace cwchess
46
47
#endif // PGNGAME_H
cwchess
A namespace for all chess related objects that are not related to the GUI.
Definition:
Array.h:39
PgnDatabase.h
This file contains the declaration of class pgn::Database.
cwchess::pgn::Game
Definition:
PgnGame.h:36
cwchess::pgn::Database
Definition:
PgnDatabase.h:43
Copyright © 2006 - 2010 Carlo Wood. All rights reserved.