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

Public Member Functions | |
| TypeName ("TableReader") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, TableReader, dictionary,(const word &name, const Function1s::unitConversions &units, const dictionary &dict),(name, units, dict)) | |
| TableReader () | |
| Default construct. More... | |
| virtual autoPtr< TableReader< Type > > | clone () const =0 |
| Construct and return a clone. More... | |
| virtual | ~TableReader () |
| Destructor. More... | |
| virtual List< Tuple2< scalar, Type > > | read (const Function1s::unitConversions &units, const dictionary &dict, const word &valuesKeyword="values") const =0 |
| Read values. More... | |
| virtual void | write (Ostream &os, const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table, const word &valuesKeyword="values") const =0 |
| Write settings and values. More... | |
Static Public Member Functions | |
| static autoPtr< TableReader< Type > > | New (const word &name, const Function1s::unitConversions &units, const dictionary &dict) |
Protected Member Functions | |
| void | convertRead (const Function1s::unitConversions &units, List< Tuple2< scalar, Type >> &table) const |
| Do unit conversions on input data. More... | |
| List< Tuple2< scalar, Type > > | convertRead (const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const |
| Do unit conversions on input data. More... | |
| List< Tuple2< scalar, Type > > | convertWrite (const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const |
| Do unit conversions in order to output data. More... | |
Base class to read table data for tables.
Definition at line 50 of file TableReader.H.
Default construct.
Definition at line 82 of file TableReader.C.
|
virtual |
Destructor.
Definition at line 89 of file TableReader.C.
|
protected |
Do unit conversions on input data.
Definition at line 31 of file TableReader.C.
References Foam::first(), forAll, Foam::second(), and Foam::units().
Referenced by Embedded< Type >::read().


|
protected |
Do unit conversions on input data.
Definition at line 47 of file TableReader.C.
References Foam::units().

|
protected |
Do unit conversions in order to output data.
Definition at line 61 of file TableReader.C.
References UList< T >::first(), Foam::first(), forAll, Foam::second(), and Foam::units().

| TypeName | ( | "TableReader< Type >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| TableReader< Type > | , | ||
| dictionary | , | ||
| (const word &name, const Function1s::unitConversions &units, const dictionary &dict) | , | ||
| (name, units, dict) | |||
| ) |
|
pure virtual |
Construct and return a clone.
Implemented in Foam< Type >, Embedded< Type >, and Csv< Type >.
|
static |
Definition at line 32 of file TableReaderNew.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::name(), Foam::nl, and Foam::units().

|
pure virtual |
Read values.
Implemented in TableFileReader< Type >, and Embedded< Type >.
|
pure virtual |
Write settings and values.
Implemented in TableFileReader< Type >, Foam< Type >, Csv< Type >, and Embedded< Type >.