30 template<
class CloudType>
36 const word& objectType,
40 Info<<
" Selecting cloud function " << modelName <<
" of type "
41 << objectType <<
endl;
43 typename dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(objectType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown cloud function type "
50 << objectType <<
nl <<
nl
51 <<
"Valid cloud function types are:" <<
nl
52 << dictionaryConstructorTablePtr_->sortedToc()
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
Templated base class for dsmc cloud.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
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)
Ostream & endl(Ostream &os)
Add newline and flush stream.