]> git.sesse.net Git - pgn-extract/blob - taglist.h
Push through a computer/human flag to the binary output.
[pgn-extract] / taglist.h
1 /*
2  *  Program: pgn-extract: a Portable Game Notation (PGN) extractor.
3  *  Copyright (C) 1994-2014 David Barnes
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 1, or (at your option)
7  *  any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  *
18  *  David Barnes may be contacted as D.J.Barnes@kent.ac.uk
19  *  http://www.cs.kent.ac.uk/people/staff/djb/
20  *
21  */
22         /* Define indices for the set of pre-defined tags.
23          * Higher values are created dynamically as new
24          * tags are recognised in the source files.
25          */
26
27     /* List the tags so that the strings that they represent
28      * would be in alphabetical order. E.g. note that EVENT_TAG and
29      * EVENT_DATE_TAG should be in this order because the strings are
30      * "Event" and "EventDate".
31      */
32 typedef enum {
33     ANNOTATOR_TAG,
34     BLACK_TAG,
35     BLACK_ELO_TAG,
36     BLACK_NA_TAG,
37     BLACK_TITLE_TAG,
38     BLACK_TYPE_TAG,
39     BLACK_USCF_TAG,
40     BOARD_TAG,
41     DATE_TAG,
42     ECO_TAG,
43     /* The PSEUDO_ELO_TAG is not a real PGN one.  It is used with the -t
44      * argument so that it becomes possible to indicate a rating of either colour.
45      */
46     PSEUDO_ELO_TAG,
47     EVENT_TAG,
48     EVENT_DATE_TAG,
49     EVENT_SPONSOR_TAG,
50     FEN_TAG,
51     /* The PSEUDO_FEN_PATTERN_TAG is not a real PGN one.  It is used with the -t
52      * argument so that it becomes possible to indicate a FEN-based board pattern.
53      */
54     PSEUDO_FEN_PATTERN_TAG,
55     HASHCODE_TAG,
56     LONG_ECO_TAG,
57     MODE_TAG,
58     NIC_TAG,
59     OPENING_TAG,
60     /* The PSEUDO_PLAYER_TAG is not a real PGN one.  It is used with the -t
61      * argument so that it becomes possible to indicate a player of either colour.
62      */
63     PSEUDO_PLAYER_TAG,
64     PLY_COUNT_TAG,
65     /* The TOTAL_PLY_COUNT_TAG is used with the --totalplycount argument
66      * so record the total number of plies in a game.
67      */
68     TOTAL_PLY_COUNT_TAG,
69     RESULT_TAG,
70     ROUND_TAG,
71     SECTION_TAG,
72     SETUP_TAG,
73     SITE_TAG,
74     STAGE_TAG,
75     SUB_VARIATION_TAG,
76     TERMINATION_TAG,
77     TIME_TAG,
78     TIME_CONTROL_TAG,
79     UTC_DATE_TAG,
80     UTC_TIME_TAG,
81     VARIATION_TAG,
82     WHITE_TAG,
83     WHITE_ELO_TAG,
84     WHITE_NA_TAG,
85     WHITE_TITLE_TAG,
86     WHITE_TYPE_TAG,
87     WHITE_USCF_TAG,
88     /* The following should always be last. It should not be used
89      * as a tag identification.
90      */
91     ORIGINAL_NUMBER_OF_TAGS
92 } TagName;