53 dictionaryConstructorTable::iterator cstrIter =
54 dictionaryConstructorTablePtr_->find(
type);
56 if (cstrIter == dictionaryConstructorTablePtr_->end())
60 <<
"Valid model types are:" <<
nl
61 << dictionaryConstructorTablePtr_->sortedToc()
65 return cstrIter()(
dict, g);
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.
scalar g() const
Get the value of gravity.
static autoPtr< waveModel > New(const dictionary &dict, const scalar g)
Select.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.