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
13
bFen::bFen
(std::string
const
& fs)
14
: m_fen{fs}
15
{
16
}
17
18
bFen::bFen
(
bFen
&& f)
19
: m_fen{(f.operator std::string())}
20
{
21
}
22
23
bFen::~bFen
()
24
{
25
}
26
27
std::ostream&
operator<<
(std::ostream& os,
bFen
const
& f)
28
{
29
os << f.operator std::string();
30
return
os;
31
}
32
33
// eof
belofte.h
This is the main include file, needs to be included before any other include.
bFen
FEN string.
Definition
fen.h:14
bFen::~bFen
~bFen()
Definition
fen.cpp:23
bFen::bFen
bFen(std::string const &fs)
Definition
fen.cpp:13
operator<<
std::ostream & operator<<(std::ostream &os, bFen const &f)
Definition
fen.cpp:27
src
fen.cpp
Generated on 10/10/2024 by
1.9.8