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()
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool foundObject(const word &name) const
Is the named Type found?
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
const word & constant() const
Return constant name.
const word dictName("particleTrackDict")
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
void store()
Transfer ownership of this object to its registry.
const Time & time() const
Return time.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...