csvTableReader< Type > Class Template Reference

Reads an interpolation table from a file - CSV-format. More...

Inheritance diagram for csvTableReader< Type >:
Collaboration diagram for csvTableReader< Type >:

Public Member Functions

 TypeName ("csv")
 Runtime type information. More...
 
 csvTableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< tableReader
< Type > > 
clone () const
 Construct and return a copy. More...
 
virtual ~csvTableReader ()
 Destructor. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, Type > > &)
 Read the table. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, List< Tuple2< scalar, Type > > > > &)
 Read 2D table. More...
 
virtual void write (Ostream &os) const
 Write the remaining parameters. More...
 
- Public Member Functions inherited from tableReader< Type >
 TypeName ("tableReader")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 
 tableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~tableReader ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from tableReader< Type >
static autoPtr< tableReaderNew (const dictionary &spec)
 Return a reference to the selected tableReader. More...
 

Detailed Description

template<class Type>
class Foam::csvTableReader< Type >

Reads an interpolation table from a file - CSV-format.

Source files

Definition at line 50 of file csvTableReader.H.

Constructor & Destructor Documentation

csvTableReader ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file csvTableReader.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and List< T >::size().

Here is the call graph for this function:

~csvTableReader ( )
virtual

Destructor.

Definition at line 54 of file csvTableReader.C.

Member Function Documentation

TypeName ( "csv"  )

Runtime type information.

virtual autoPtr<tableReader<Type> > clone ( ) const
inlinevirtual

Construct and return a copy.

Implements tableReader< Type >.

Definition at line 84 of file csvTableReader.H.

void operator() ( const fileName fName,
List< Tuple2< scalar, Type > > &  data 
)
virtual

Read the table.

Implements tableReader< Type >.

Definition at line 110 of file csvTableReader.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), ISstream::getLine(), IOstream::good(), Foam::pos(), Foam::readScalar(), List< T >::size(), and dictionary::transfer().

Here is the call graph for this function:

void operator() ( const fileName fName,
List< Tuple2< scalar, List< Tuple2< scalar, Type > > > > &  data 
)
virtual

Read 2D table.

Implements tableReader< Type >.

Definition at line 167 of file csvTableReader.C.

References notImplemented.

void write ( Ostream os) const
virtual

Write the remaining parameters.

Reimplemented from tableReader< Type >.

Definition at line 177 of file csvTableReader.C.

References IOstream::ASCII, IOstream::BINARY, token::END_STATEMENT, IOstream::format(), Foam::nl, tableReader< Type >::write(), and Ostream::writeKeyword().

Here is the call graph for this function:


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