Reads an interpolation table from a file - CSV-format. More...
Public Member Functions | |
TypeName ("csv") | |
Declare type-name, virtual type (with debug switch) More... | |
csvTableReader (const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< tableReader< Type > > | clone () const |
Construct and return a copy. More... | |
virtual | ~csvTableReader ()=default |
Destructor. More... | |
virtual void | operator() (const fileName &fName, List< Tuple2< scalar, Type >> &data) |
Read 1D table. More... | |
virtual void | operator() (const fileName &fName, List< Tuple2< scalar, List< Tuple2< scalar, Type >>>> &data) |
Read 2D table - NotImplemented. More... | |
virtual void | write (Ostream &os) const |
Write the remaining parameters. More... | |
Public Member Functions inherited from tableReader< Type > | |
TypeName ("tableReader") | |
Declare type-name, virtual type (with debug switch) More... | |
declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict)) | |
tableReader ()=default | |
Default construct. More... | |
tableReader (const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~tableReader ()=default |
Destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from tableReader< Type > | |
static autoPtr< tableReader > | New (const dictionary &spec) |
Return a reference to the selected tableReader. More... | |
Reads an interpolation table from a file - CSV-format.
Definition at line 49 of file csvTableReader.H.
csvTableReader | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 91 of file csvTableReader.C.
|
virtualdefault |
Destructor.
TypeName | ( | "csv" | ) |
Declare type-name, virtual type (with debug switch)
|
inlinevirtual |
Construct and return a copy.
Implements tableReader< Type >.
Definition at line 112 of file csvTableReader.H.
Read 1D table.
Implements tableReader< Type >.
Definition at line 108 of file csvTableReader.C.
References DynamicList< T, SizeMin >::clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fileHandler, Foam::findMax(), ISstream::getLine(), IOstream::good(), Foam::max(), n, Foam::nl, Foam::pos(), DynamicList< T, SizeMin >::push_back(), UList< T >::size(), Foam::HashTableOps::values(), and x.
|
virtual |
Read 2D table - NotImplemented.
Implements tableReader< Type >.
Definition at line 188 of file csvTableReader.C.
References NotImplemented.
|
virtual |
Write the remaining parameters.
Reimplemented from tableReader< Type >.
Definition at line 198 of file csvTableReader.C.
References IOstreamOption::ASCII, IOstreamOption::format(), os(), tableReader< Type >::write(), and Ostream::writeEntry().