OpenASIP  2.0
Static Public Member Functions | List of all members
LineReaderFactory Class Reference

#include <LineReaderFactory.hh>

Collaboration diagram for LineReaderFactory:
Collaboration graph

Static Public Member Functions

static LineReaderlineReader ()
 

Detailed Description

Factory for creating the best version of LineReader available.

The best version of LineReader available is figured out during configure.

Definition at line 43 of file LineReaderFactory.hh.

Member Function Documentation

◆ lineReader()

LineReader * LineReaderFactory::lineReader ( )
static

Creates the best possible LineReader available in the system.

Returned instance is owned by the client. The best possible LineReader depends on which libraries are installed in the system.

Returns
A LineReader instance.

Definition at line 54 of file LineReaderFactory.cc.

54  {
55 #ifdef EDITLINE
56  return new EditLineReader();
57 #else
58  return new BaseLineReader();
59 #endif
60 }

Referenced by main().


The documentation for this class was generated from the following files:
BaseLineReader
Definition: BaseLineReader.hh:47
EditLineReader
Definition: EditLineReader.hh:53