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)"
83 "Additional verbosity"
104 for (
int argi = 1; argi <
args.
size(); ++argi)
118 const void* ptr = libs.
open(libName,
false);
138 InfoErr <<
"Already loaded " << libName <<
nl;
149 return (nbad == 0 || (testOr && ngood > 0)) ? 0 : 1;
dlLibraryTable & libs() const noexcept
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
A class for handling file names.
static void addNote(const string ¬e)
Extract command arguments and options from the supplied argc and argv parameters.
A HashTable with keys but without contents that is similar to std::unordered_set.
T get(const label index) const
static void noMandatoryArgs()
InfoProxy< dlLibraryTable > info() const
static void addArgument(const string &argName, const string &usage="")
int verbose() const noexcept
bool open(bool verbose=true)
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
label size() const noexcept
bool insert(const Key &key)
word name(const expressions::valueTypeCode typeCode)
Foam::argList args(argc, argv)
static void addVerboseOption(const string &usage, bool advanced=false)
static void removeOption(const word &optName)
bool found(const word &optName) const