34 const word& readerType,
38 typename dictionaryConstructorTable::iterator cstrIter =
39 dictionaryConstructorTablePtr_->find(readerType);
41 if (cstrIter == dictionaryConstructorTablePtr_->end())
44 <<
"Unknown reader type " << readerType
46 <<
"Valid reader types : " <<
nl 47 << dictionaryConstructorTablePtr_->sortedToc()
79 template<
class TableType>
96 <<
"Cannot open file" << fName <<
nl 107 <<
"Table read from " << fName <<
" is empty" <<
nl Base class to read table data for tables.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool good() const
Return true if next operation might succeed.
A class for handling words, derived from string.
const fileOperation & fileHandler()
Get current file handler.
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)
Database for solution and other reduced data.
virtual void write(Ostream &os) const
Write additional information.
TableReader(const dictionary &dict)
Construct from dictionary.
string & expand(const bool allowEmpty=false)
Expand initial tildes and all occurrences of environment variables.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual ~TableReader()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...