50 template<
class Coordinate,
class Value>
130 const word& valuesKeyword=
"values"
139 const word& valuesKeyword=
"values"
150 #define defineTableReader(Coordinate, Value) \
152 typedef TableReader<Coordinate, Value> \
153 TableReader##Coordinate##Value; \
155 defineNamedTemplateTypeNameAndDebug \
157 TableReader##Coordinate##Value, \
161 defineTemplateRunTimeSelectionTable \
163 TableReader##Coordinate##Value, \
168 #define addTableReader(TableReaderType, Coordinate, Value) \
170 typedef TableReader<Coordinate, Value> \
171 TableReader##Coordinate##Value; \
173 namespace TableReaders \
175 typedef TableReaderType<Coordinate, Value> \
176 TableReaderType##TableReader##Coordinate##Value; \
178 defineNamedTemplateTypeNameAndDebug \
180 TableReaderType##TableReader##Coordinate##Value, \
184 addToRunTimeSelectionTable \
186 TableReader##Coordinate##Value, \
187 TableReaderType##TableReader##Coordinate##Value, \
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.
void convertRead(const Function1s::unitSets &units, List< Tuple2< Coordinate, Value >> &table) const
Do unit conversions on input data.
TableReader()
Default construct.
TypeName("TableReader")
Runtime type information.
static autoPtr< TableReader< Coordinate, Value > > New(const word &name, const Function1s::unitSets &units, const dictionary &dict)
virtual void write(Ostream &os, const Function1s::unitSets &units, const List< Tuple2< Coordinate, Value >> &table, const word &valuesKeyword="values") const =0
Write settings and values.
virtual ~TableReader()
Destructor.
virtual autoPtr< TableReader< Coordinate, Value > > clone() const =0
Construct and return a clone.
virtual List< Tuple2< Coordinate, Value > > read(const Function1s::unitSets &units, const dictionary &dict, const word &valuesKeyword="values") const =0
Read values.
List< Tuple2< Coordinate, Value > > convertWrite(const Function1s::unitSets &units, const List< Tuple2< Coordinate, Value >> &table) const
Do unit conversions in order to output data.
declareRunTimeSelectionTable(autoPtr, TableReader, dictionary,(const word &name, const Function1s::unitSets &units, const dictionary &dict),(name, units, dict))
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< dimensionSet > table
Table of dimensions.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Macros to ease declaration of run-time selection tables.
Struct containing two unitSets for use in converting both the argument and the value of a Function1.