Cute Chess  0.1
Static Public Member Functions | List of all members
EngineFactory Class Reference

A factory for creating ChessEngine objects. More...

#include <enginefactory.h>

Static Public Member Functions

static ChessEnginecreate (const QString &protocol)
 
static QStringList protocols ()
 
static ClassRegistry< ChessEngine > * registry ()
 

Detailed Description

A factory for creating ChessEngine objects.

Member Function Documentation

ChessEngine * EngineFactory::create ( const QString protocol)
static

Creates and returns a new engine that uses protocol protocol. Returns 0 if no engine class is associated with protocol.

QStringList EngineFactory::protocols ( )
static

Returns a list of supported chess protocols.

ClassRegistry< ChessEngine > * EngineFactory::registry ( )
static

Returns the class registry for concrete ChessEngine subclasses.


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