42 typename dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown reader type " << readerType
51 <<
"Valid reader types : " <<
nl 52 << dictionaryConstructorTablePtr_->sortedToc()
79 if (this->
type() !=
"openFoam")
82 << this->
type() << token::END_STATEMENT <<
nl;
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.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual ~tableReader()
Destructor.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
static autoPtr< tableReader > New(const dictionary &spec)
Return a reference to the selected tableReader.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual void write(Ostream &os) const
Write additional information.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
tableReader(const dictionary &dict)
Construct from dictionary.