Loading...
Searching...
No Matches
csvTableReader< Type > Class Template Reference

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

#include <csvTableReader.H>

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

Public Member Functions

 TypeName ("csv")
 Declare type-name, virtual type (with debug switch).
 csvTableReader (const dictionary &dict)
 Construct from dictionary.
virtual autoPtr< tableReader< Type > > clone () const
 Construct and return a copy.
virtual ~csvTableReader ()=default
 Destructor.
virtual void operator() (const fileName &fName, List< Tuple2< scalar, Type > > &data)
 Read 1D table.
virtual void operator() (const fileName &fName, List< Tuple2< scalar, List< Tuple2< scalar, Type > > > > &data)
 Read 2D table - NotImplemented.
virtual void write (Ostream &os) const
 Write the remaining parameters.
Public Member Functions inherited from tableReader< Type >
 TypeName ("tableReader")
 Declare type-name, virtual type (with debug switch).
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 tableReader ()=default
 Default construct.
 tableReader (const dictionary &dict)
 Construct from dictionary.
virtual ~tableReader ()=default
 Destructor.

Additional Inherited Members

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

Detailed Description

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

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

Source files

Definition at line 49 of file csvTableReader.H.

Constructor & Destructor Documentation

◆ csvTableReader()

template<class Type>
csvTableReader ( const dictionary & dict)

Construct from dictionary.

Definition at line 91 of file csvTableReader.C.

References dict, and tableReader< Type >::tableReader().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~csvTableReader()

template<class Type>
virtual ~csvTableReader ( )
virtualdefault

Destructor.

References os().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "csv" )

Declare type-name, virtual type (with debug switch).

References dict.

◆ clone()

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

Construct and return a copy.

Implements tableReader< Type >.

Definition at line 112 of file csvTableReader.H.

References csvTableReader().

Here is the call graph for this function:

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

Read 2D table - NotImplemented.

Implements tableReader< Type >.

Definition at line 187 of file csvTableReader.C.

References NotImplemented.

◆ write()

template<class Type>
void write ( Ostream & os) const
virtual

Write the remaining parameters.

Reimplemented from tableReader< Type >.

Definition at line 198 of file csvTableReader.C.

References IOstreamOption::ASCII, os(), and tableReader< Type >::write().

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