All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TableReader< Type > Class Template Referenceabstract

Base class to read table data for tables. More...

Inheritance diagram for TableReader< Type >:

Public Member Functions

 TypeName ("TableReader")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, TableReader, dictionary,(const dictionary &dict),(dict))
 
 TableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< TableReader< Type > > clone () const =0
 Construct and return a clone. More...
 
virtual ~TableReader ()
 Destructor. More...
 
template<class TableType >
void operator() (const fileName &, TableType &) const
 Read a table. More...
 
virtual void write (Ostream &os) const
 Write additional information. More...
 

Static Public Member Functions

static autoPtr< TableReader< Type > > New (const word &readerType, const dictionary &dict)
 

Detailed Description

template<class Type>
class Foam::TableReader< Type >

Base class to read table data for tables.

Source files

Definition at line 52 of file TableReader.H.

Constructor & Destructor Documentation

◆ TableReader()

TableReader ( const dictionary dict)

Construct from dictionary.

Definition at line 58 of file TableReader.C.

◆ ~TableReader()

~TableReader ( )
virtual

Destructor.

Definition at line 65 of file TableReader.C.

Member Function Documentation

◆ TypeName()

TypeName ( "TableReader< Type >"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
TableReader< Type >  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

◆ clone()

virtual autoPtr<TableReader<Type> > clone ( ) const
pure virtual

Construct and return a clone.

Implemented in Csv< Type >, and Foam< Type >.

◆ New()

Foam::autoPtr< Foam::TableReader< Type > > New ( const word readerType,
const dictionary dict 
)
static

Definition at line 33 of file TableReader.C.

◆ operator()()

void operator() ( const fileName fName,
TableType &  data 
) const

Read a table.

Definition at line 81 of file TableReader.C.

◆ write()

void write ( Ostream os) const
virtual

Write additional information.

Reimplemented in Csv< Type >.

Definition at line 72 of file TableReader.C.

Referenced by Csv< Type >::write().

Here is the caller graph for this function:

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