|
libscid 0.1.0
Chess applications made easy.
|
Implements a parser that converts PGN text into SCID's Game objects. More...
#include "scid/core/game.h"#include "scid/core/movetext_location.h"#include <cstddef>#include <string>
Include dependency graph for decode.h:Go to the source code of this file.
Classes | |
| struct | scid::core::pgn::ParseLog |
| Format and store errors. More... | |
Functions | |
| bool | scid::core::pgn::parseGame (const char *input, size_t inputLen, scid::core::Game &game, ParseLog &log) |
| Convert PGN text into a core Game object. | |
| bool | scid::core::pgn::parseGame (const char *input, size_t inputLen, scid::core::Game &game, scid::core::MovetextLocation &location, ParseLog &log) |
Implements a parser that converts PGN text into SCID's Game objects.
| bool scid::core::pgn::parseGame | ( | const char * | input, |
| size_t | inputLen, | ||
| scid::core::Game & | game, | ||
| ParseLog & | log | ||
| ) |
Convert PGN text into a core Game object.
| input | the memory containing the PGN text. |
| inputLen | the number of chars in input. |
| game | the Game object where the game will be stored. The object is not automatically cleared so that moves can be added to an already existing one. |
| log | stores eventual parsing error. |