cwchess::ChessNotation Class Reference

A helper class to write other objects to an ostream. More...

#include <ChessNotation.h>

List of all members.

Public Member Functions

Constructors

 ChessNotation (ChessPosition const& chess_position, Piece const& piece)
 ChessNotation (ChessPosition const& chess_position, Index const& index)
 ChessNotation (ChessPosition const& chess_position, Move const& move)
 ChessNotation (ChessPosition const& chess_position, Type const& type)

Friends

std::ostream&  operator<< (std::ostream& os, ChessNotation const& chess_notation)

Detailed Description

A helper class to write other objects to an ostream.

This class allows objects of several types to be written to an ostream in a human readable form.

The constructor always takes the chess_position that the object refers to as first argument.

Usage example:

 std::cout << ChessNotation(chess_position, move);

Definition at line 51 of file ChessNotation.h.


The documentation for this class was generated from the following files:

Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.