Go to the documentation of this file.
34 const word& helpTypeName
37 auto cstrIter = dictionaryConstructorTablePtr_->cfind(helpTypeName);
39 if (!cstrIter.found())
43 if (helpTypeName.starts_with(
"-help"))
46 <<
"Valid helpType selections:" <<
nl
48 <<
flatOutput(dictionaryConstructorTablePtr_->sortedToc()) <<
nl
54 <<
"Unknown helpType type '" << helpTypeName <<
"'" <<
nl <<
nl
55 <<
"Valid helpType selections:" <<
nl
57 <<
flatOutput(dictionaryConstructorTablePtr_->sortedToc()) <<
nl
62 Info<<
"Selecting helpType '" << helpTypeName <<
"'" <<
endl;
64 return autoPtr<helpType>(cstrIter()());
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (uses stdout - output is on the master only)
static autoPtr< helpType > New(const word &helpTypeName)
Selector.
errorManip< error > abort(error &err)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.