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]);
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
constexpr char nl
The newline '\n' character (0x0a)
bool throwing() const noexcept
Return the current exception throwing state (on or off)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void clear() noexcept
Same as reset(nullptr)
static autoPtr< helpType > New(const word &helpTypeName)
Selector.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
A class for handling words, derived from Foam::string.
string message() const
The accumulated error message.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Foam::argList args(argc, argv)