115 #define defineTableReader(Type) \
117 defineNamedTemplateTypeNameAndDebug(TableReader<Type>, 0); \
119 defineTemplateRunTimeSelectionTable(TableReader<Type>, dictionary);
122 #define makeTableReader(SS, Type) \
124 defineNamedTemplateTypeNameAndDebug(TableReaders::SS<Type>, 0); \
126 addTemplatedToRunTimeSelectionTable(TableReader, SS, Type, dictionary)
128 #define makeTableReaders(Type) \
129 defineTableReader(Type); \
131 namespace TableReaders \
133 makeTableReader(Embedded, Type); \
134 makeTableReader(Foam, Type); \
135 makeTableReader(Csv, Type); \
Macros for easy insertion into run-time selection tables.
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.
declareRunTimeSelectionTable(autoPtr, TableReader, dictionary,(const word &name, const dictionary &dict, List< Tuple2< scalar, Type >> &table),(name, dict, table))
static autoPtr< TableReader< Type > > New(const word &name, const dictionary &dict, List< Tuple2< scalar, Type >> &table)
TypeName("TableReader")
Runtime type information.
virtual void write(Ostream &os, const List< Tuple2< scalar, Type >> &table) const
Write additional information.
virtual ~TableReader()
Destructor.
virtual autoPtr< TableReader< Type > > clone() const =0
Construct and return a clone.
TableReader(const dictionary &dict)
Construct from dictionary.
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 keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.