Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
fen.cpp
Go to the documentation of this file.
1/*---------------------------------------------------------------------+
2 * File: fen.cpp
3 * Project: part of belofte - A Promising Chess Program
4 * Author: yves
5 * SPDX-License-Identifier: GPL-2.0-only
6+----------------------------------------------------------------------*/
7
8#include "belofte.h"
9
10//-----------------------------------------------------------------------
11// bFen functions
12
13bFen::bFen(std::string const& fs)
14 : m_fen{fs}
15{
16}
17
19 : m_fen{(f.operator std::string())}
20{
21}
22
24{
25}
26
27std::ostream& operator<<(std::ostream& os, bFen const& f)
28{
29 os << f.operator std::string();
30 return os;
31}
32
33// eof
This is the main include file, needs to be included before any other include.
FEN string.
Definition fen.h:14
~bFen()
Definition fen.cpp:23
bFen(std::string const &fs)
Definition fen.cpp:13
std::ostream & operator<<(std::ostream &os, bFen const &f)
Definition fen.cpp:27