Go to the documentation of this file.
61 int main(
int argc,
char *argv[])
73 "Success if any of the libraries can be loaded\n"
74 "(does not short-circuit)"
84 "Additional verbosity"
97 const bool verbose =
args.
found(
"verbose");
106 for (
int argi = 1; argi <
args.
size(); ++argi)
120 const void* ptr = libs.
open(libName,
false);
140 InfoErr <<
"Already loaded " << libName <<
nl;
151 return (nbad == 0 || (testOr && ngood > 0)) ? 0 : 1;
static void noBanner()
Disable emitting the banner information.
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
A class for handling file names.
static fileName validate(const std::string &s, const bool doClean=true)
static void addNote(const string ¬e)
Add extra notes for the usage information.
Extract command arguments and options from the supplied argc and argv parameters.
messageStream InfoErr
Information stream (uses stderr - output is on the master only)
static void noMandatoryArgs()
Flag command arguments as being optional (non-mandatory)
const dlLibraryTable & libs() const
Access to the loaded libraries.
InfoProxy< dlLibraryTable > info() const
Return info proxy.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
word name(const complex &c)
Return string representation of complex.
static void disable()
Disallow profiling by forcing the InfoSwitch off.
bool open(bool verbose=true)
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
label size() const noexcept
The number of arguments.
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
static void removeOption(const word &optName)
Remove option from validOptions and from optionUsage.
bool found(const word &optName) const
Return true if the named option is found.