A table of dynamically loaded libraries. More...
Public Member Functions | |
ClassName ("dlLibraryTable") | |
dlLibraryTable ()=default | |
Construct null. More... | |
dlLibraryTable (dlLibraryTable &&)=default | |
Move construct. More... | |
dlLibraryTable (const UList< fileName > &libNames, bool verbose=true) | |
Open specified libraries. Ignores duplicate names. More... | |
dlLibraryTable (const dictionary &dict, const word &libsEntry) | |
~dlLibraryTable () | |
Destructor. Closes all libraries loaded by the table. More... | |
bool | empty () const |
True if no there are no libraries loaded by the table. More... | |
label | size () const |
The number of libraries loaded by the table. More... | |
void | clear (bool verbose=true) |
Clearing closes all libraries loaded by the table. More... | |
bool | append (const fileName &libName) |
Add to the list of names, but do not yet open. More... | |
label | append (const UList< fileName > &libNames) |
Add to the list of names, but do not yet open. More... | |
bool | open (bool verbose=true) |
void * | open (const fileName &libName, bool verbose=true) |
Open the named library, optionally warn if problems occur. More... | |
bool | open (const UList< fileName > &libNames, bool verbose=true) |
Open the named libraries, optionally warn if problems occur. More... | |
bool | close (const fileName &libName, bool verbose=true) |
Close the named library, optionally warn if problems occur. More... | |
void * | findLibrary (const fileName &libName) |
Find the handle of the named library. More... | |
bool | open (const dictionary &dict, const word &libsEntry) |
template<class TablePtr > | |
bool | open (const dictionary &dict, const word &libsEntry, const TablePtr &tablePtr) |
dlLibraryTable & | operator= (dlLibraryTable &&)=default |
Move assignment. More... | |
A table of dynamically loaded libraries.
Definition at line 51 of file dlLibraryTable.H.
|
default |
Construct null.
|
default |
Move construct.
|
explicit |
Open specified libraries. Ignores duplicate names.
Definition at line 76 of file dlLibraryTable.C.
References dlLibraryTable::open().
dlLibraryTable | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary. Verbose = true.
Definition at line 86 of file dlLibraryTable.C.
References dict, and dlLibraryTable::open().
~dlLibraryTable | ( | ) |
Destructor. Closes all libraries loaded by the table.
Definition at line 97 of file dlLibraryTable.C.
References clear().
ClassName | ( | "dlLibraryTable" | ) |
bool empty | ( | ) | const |
True if no there are no libraries loaded by the table.
Definition at line 105 of file dlLibraryTable.C.
Foam::label size | ( | ) | const |
The number of libraries loaded by the table.
Definition at line 119 of file dlLibraryTable.C.
void clear | ( | bool | verbose = true | ) |
Clearing closes all libraries loaded by the table.
Definition at line 135 of file dlLibraryTable.C.
References DebugInFunction, Foam::dlClose(), Foam::endl(), forAll, forAllReverse, Foam::name(), Foam::nl, and WarningInFunction.
Add to the list of names, but do not yet open.
Ignores duplicate names.
Definition at line 197 of file dlLibraryTable.C.
Foam::label append | ( | const UList< fileName > & | libNames | ) |
Add to the list of names, but do not yet open.
Ignores duplicate names.
Definition at line 211 of file dlLibraryTable.C.
References append().
Open named, but unopened libraries. These names will normally have been added with the append() method.
Definition at line 227 of file dlLibraryTable.C.
References forAll.
Referenced by dlLibraryTable::dlLibraryTable(), codeStream::getFunction(), and dlLibraryTable::open().
Open the named library, optionally warn if problems occur.
Definition at line 258 of file dlLibraryTable.C.
Open the named libraries, optionally warn if problems occur.
Ignores duplicate names.
Definition at line 276 of file dlLibraryTable.C.
References dlLibraryTable::open().
Close the named library, optionally warn if problems occur.
Definition at line 303 of file dlLibraryTable.C.
References DebugInFunction, Foam::dlClose(), Foam::endl(), Foam::name(), Foam::nl, and WarningInFunction.
void * findLibrary | ( | const fileName & | libName | ) |
Find the handle of the named library.
Definition at line 334 of file dlLibraryTable.C.
Referenced by codeStream::getFunction().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary.
Definition at line 348 of file dlLibraryTable.C.
References dict, dlLibraryTable::open(), and dictionary::readIfPresent().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry, | ||
const TablePtr & | tablePtr | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary and check the additions to the given constructor table
Definition at line 37 of file dlLibraryTableTemplates.C.
References Foam::expressions::patchExpr::debug, dict, Foam::endl(), Foam::nl, and WarningInFunction.
|
default |
Move assignment.