A table of dynamically loaded libraries. More...
Public Member Functions | |
ClassName ("dlLibraryTable") | |
dlLibraryTable () | |
Construct null. More... | |
dlLibraryTable (const dictionary &, const word &) | |
Construct from dictionary and name of 'libs' entry giving. More... | |
~dlLibraryTable () | |
Destructor. More... | |
bool | open (const fileName &name, const bool verbose=true) |
Open the named library, optionally with warnings if problems occur. More... | |
bool | close (const fileName &name, const bool verbose=true) |
Close the named library, optionally with warnings if problems occur. More... | |
void * | findLibrary (const fileName &name) |
Find the handle of the named library. More... | |
bool | open (const dictionary &, const word &libsEntry) |
Open all the libraries listed in the 'libsEntry' entry in the. More... | |
template<class TablePtr > | |
bool | open (const dictionary &, const word &libsEntry, const TablePtr &tablePtr) |
Open all the libraries listed in the 'libsEntry' entry in the. More... | |
A table of dynamically loaded libraries.
Definition at line 49 of file dlLibraryTable.H.
dlLibraryTable | ( | ) |
Construct null.
Definition at line 40 of file dlLibraryTable.C.
dlLibraryTable | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Construct from dictionary and name of 'libs' entry giving.
the libraries to load
Definition at line 45 of file dlLibraryTable.C.
~dlLibraryTable | ( | ) |
Destructor.
Definition at line 56 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, InfoInFunction, dlLibraryTable::open(), and WarningInFunction.
ClassName | ( | "dlLibraryTable" | ) |
bool open | ( | const fileName & | name, |
const bool | verbose = true |
||
) |
Open the named library, optionally with warnings if problems occur.
Definition at line 81 of file dlLibraryTable.C.
References dlLibraryTable::close(), Foam::dlOpen(), Foam::endl(), Foam::stringOps::expand(), InfoInFunction, and WarningInFunction.
Referenced by dlLibraryTable::findLibrary(), dlLibraryTable::open(), and dlLibraryTable::~dlLibraryTable().
bool close | ( | const fileName & | name, |
const bool | verbose = true |
||
) |
Close the named library, optionally with warnings if problems occur.
Definition at line 127 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, InfoInFunction, fileName::null, and WarningInFunction.
Referenced by dlLibraryTable::open().
void * findLibrary | ( | const fileName & | name | ) |
Find the handle of the named library.
Definition at line 174 of file dlLibraryTable.C.
References forAllReverse, and dlLibraryTable::open().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Open all the libraries listed in the 'libsEntry' entry in the.
given dictionary if present
Definition at line 195 of file dlLibraryTable.C.
References UList< T >::empty(), forAll, dictionary::found(), dictionary::lookup(), and dlLibraryTable::open().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry, | ||
const TablePtr & | tablePtr | ||
) |
Open all the libraries listed in the 'libsEntry' entry in the.
given dictionary if present and check the additions to the given constructor table
Definition at line 34 of file dlLibraryTableTemplates.C.
References Foam::endl(), forAll, dictionary::found(), dictionary::lookup(), and WarningInFunction.