40 ConstructorTable::iterator cstrIter = ConstructorTablePtr_->find(
name);
42 if (cstrIter == ConstructorTablePtr_->end())
45 <<
"Unknown liquidProperties type "
47 <<
"Valid liquidProperties types are:" <<
nl
48 << ConstructorTablePtr_->sortedToc()
67 const word& liquidPropertiesTypeName =
70 dictionaryConstructorTable::iterator cstrIter =
71 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
73 if (cstrIter == dictionaryConstructorTablePtr_->end())
76 <<
"Unknown liquidProperties type "
77 << liquidPropertiesTypeName <<
nl <<
nl
78 <<
"Valid liquidProperties types are:" <<
nl
79 << dictionaryConstructorTablePtr_->sortedToc()
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word dictName() const
Return the local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual const word & name() const
Return the name of the liquid.
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.