Go to the documentation of this file.
45 int main(
int argc,
char *argv[])
52 if (argc > 1 &&
'-' == *argv[1])
59 <<
"No help utility has been supplied" <<
nl
63 word utilityName(argv[1]);
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
A class for handling words, derived from Foam::string.
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.
string message() const
The accumulated error message.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void clear() noexcept
Same as reset(nullptr)
Foam::argList args(argc, argv)
bool throwExceptions(bool doThrow)
Activate/deactivate exception throwing.
Class to handle errors and exceptions in a simple, consistent stream-based manner.