130 const word& valuesKeyword=
"values"
139 const word& valuesKeyword=
"values"
150 #define defineTableReader(Type) \
152 defineNamedTemplateTypeNameAndDebug(TableReader<Type>, 0); \
154 defineTemplateRunTimeSelectionTable(TableReader<Type>, dictionary);
157 #define addTableReader(SS, Type) \
159 defineNamedTemplateTypeNameAndDebug(TableReaders::SS<Type>, 0); \
161 addTemplatedToRunTimeSelectionTable(TableReader, SS, Type, dictionary)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class to read table data for tables.
virtual List< Tuple2< scalar, Type > > read(const Function1s::unitConversions &units, const dictionary &dict, const word &valuesKeyword="values") const =0
Read values.
TableReader()
Default construct.
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.
TypeName("TableReader")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, TableReader, dictionary,(const word &name, const Function1s::unitConversions &units, const dictionary &dict),(name, units, dict))
static autoPtr< TableReader< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
virtual ~TableReader()
Destructor.
virtual autoPtr< TableReader< Type > > clone() const =0
Construct and return a clone.
List< Tuple2< scalar, Type > > convertWrite(const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const
Do unit conversions in order to output data.
void convertRead(const Function1s::unitConversions &units, List< Tuple2< scalar, Type >> &table) const
Do unit conversions on input data.
A 2-tuple for storing two objects of different types.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Macros to ease declaration of run-time selection tables.