103 const word& readerType,
115 template<
class TableType>
129 #define defineTableReader(Type) \ 131 defineNamedTemplateTypeNameAndDebug(TableReader<Type>, 0); \ 133 defineTemplateRunTimeSelectionTable(TableReader<Type>, dictionary); 136 #define makeTableReader(SS, Type) \ 138 defineNamedTemplateTypeNameAndDebug(TableReaders::SS<Type>, 0); \ 140 TableReader<Type>::adddictionaryConstructorToTable<TableReaders::SS<Type>> \ 141 add##SS##Type##ConstructorToTable_; declareRunTimeSelectionTable(autoPtr, TableReader, dictionary,(const dictionary &dict),(dict))
Base class to read table data for tables.
A class for handling file names.
void operator()(const fileName &, TableType &) const
Read a table.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 2-tuple for storing two objects of different types.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Include the header files for all the primitive types that Fields are instantiated for...
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static autoPtr< TableReader< Type > > New(const word &readerType, const dictionary &dict)
virtual void write(Ostream &os) const
Write additional information.
TableReader(const dictionary &dict)
Construct from dictionary.
virtual autoPtr< TableReader< Type > > clone() const =0
Construct and return a clone.
TypeName("TableReader")
Runtime type information.
virtual ~TableReader()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.