UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
Loading...
Searching...
No Matches
UCILoader::Marschaler< Target > Class Template Referenceabstract

#include <Parser.h>

Public Member Functions

virtual void loadInto (const std::string &token, Target &target) const =0
 
virtual Target marshal (const std::string &token) const
 

Detailed Description

template<class Target>
class UCILoader::Marschaler< Target >

The move Marschaler interface provides a functionality of parsing move tokens from UCI protocol into usable objects. It is possible to implement this interface for any custom move representation as long as that representation is default constructible. It is especially useful for chess variants that do not obey standard chess move notation and custom parsing logic / move representation is required.

In order to implement this interface user should provide a loadInto() method.

Member Function Documentation

◆ loadInto()

template<class Target >
virtual void UCILoader::Marschaler< Target >::loadInto ( const std::string &  token,
Target &  target 
) const
pure virtual

Parses value of 'token' string into 'target' object.

◆ marshal()

template<class Target >
Target UCILoader::Marschaler< Target >::marshal ( const std::string &  token) const
inlinevirtual

Returns parsed value of given token


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