55 dict.lookupOrDefault<
word>(
"type", waveSuperposition::typeName);
57 objectRegistryConstructorTable::iterator cstrIter =
58 objectRegistryConstructorTablePtr_->find(
type);
60 if (cstrIter == objectRegistryConstructorTablePtr_->end())
63 <<
"Unknown " << waveSuperposition::typeName <<
" " <<
type
64 <<
nl <<
nl <<
"Valid types are:" <<
nl
65 << objectRegistryConstructorTablePtr_->sortedToc()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const objectRegistry & db() const
Return the local objectRegistry.
static const word & constant()
Return constant name.
Registry of regIOobjects.
const Time & time() const
Return time.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
bool foundObject(const word &name) const
Is the named Type in registry.
void store()
Transfer ownership of this object to its registry.
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity....
static const word dictName
The name of the dictionary.
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.