FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

tableReader< Type > Class Template Reference

Base class to read table data for the interpolationTable. More...

#include <OpenFOAM/tableReader.H>


Detailed Description

template<class Type>
class Foam::tableReader< Type >

Base class to read table data for the interpolationTable.

Source files

Definition at line 58 of file tableReader.H.

Inheritance diagram for tableReader< Type >:

List of all members.

Public Member Functions

 TypeName ("tableReader")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 tableReader (const dictionary &dict)
 Construct from dictionary.
virtual autoPtr< tableReader
< Type > >  
clone () const =0
 Construct and return a clone.
virtual  ~tableReader ()
 Destructor.
virtual void  operator() (const fileName &, List< Tuple2< scalar, Type > > &)=0
 Read the table.
virtual void  write (Ostream &os) const
 Write additional information.

Static Public Member Functions

static autoPtr< tableReader >  New (const dictionary &spec)
 Return a reference to the selected tableReader.

Constructor & Destructor Documentation

tableReader ( const dictionary &   dict  )

Construct from dictionary.

Definition at line 65 of file tableReader.C.

~tableReader (  ) [virtual]

Destructor.

Definition at line 72 of file tableReader.C.


Member Function Documentation

TypeName ( "tableReader< Type >"    )

Runtime type information.

declareRunTimeSelectionTable ( autoPtr   ,
tableReader< Type >   ,
dictionary   ,
(const dictionary &dict)   ,
(dict)    
)
virtual autoPtr<tableReader<Type> > clone (  ) const [pure virtual]

Construct and return a clone.

Implemented in csvTableReader< Type >, and openFoamTableReader< Type >.

Foam::autoPtr< Foam::tableReader< Type > > New ( const dictionary &   spec  ) [static]

Return a reference to the selected tableReader.

Definition at line 32 of file tableReader.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::lookupOrDefault(), and Foam::nl.

virtual void operator() ( const fileName &   ,
List< Tuple2< scalar, Type > > &    
) [pure virtual]

Read the table.

Implemented in csvTableReader< Type >, and openFoamTableReader< Type >.

void write ( Ostream &   os  ) const [virtual]

Write additional information.

Reimplemented in csvTableReader< Type >.

Definition at line 79 of file tableReader.C.

References Foam::nl, Foam::type(), and Ostream::writeKeyword().

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


The documentation for this class was generated from the following files:
  • src/OpenFOAM/interpolations/interpolationTable/tableReaders/tableReader.H
  • src/OpenFOAM/interpolations/interpolationTable/tableReaders/tableReader.C