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... | |
Private Member Functions | |
dlLibraryTable (const dlLibraryTable &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const dlLibraryTable &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
DynamicList< void * > | libPtrs_ |
DynamicList< fileName > | libNames_ |
A table of dynamically loaded libraries.
Definition at line 49 of file dlLibraryTable.H.
|
private |
Disallow default bitwise copy construct.
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.
References dict.
~dlLibraryTable | ( | ) |
Destructor.
Definition at line 56 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, and Foam::Info.
|
private |
Disallow default bitwise assignment.
ClassName | ( | "dlLibraryTable" | ) |
bool open | ( | const fileName & | name, |
const bool | verbose = true |
||
) |
Open the named library, optionally with warnings if problems occur.
Definition at line 77 of file dlLibraryTable.C.
References Foam::dlOpen(), Foam::endl(), Foam::Info, and WarningInFunction.
Referenced by codeStream::getFunction(), and dlLibraryTable::open().
bool close | ( | const fileName & | name, |
const bool | verbose = true |
||
) |
Close the named library, optionally with warnings if problems occur.
Definition at line 118 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, Foam::Info, fileName::null, and WarningInFunction.
void * findLibrary | ( | const fileName & | name | ) |
Find the handle of the named library.
Definition at line 164 of file dlLibraryTable.C.
References forAllReverse.
Referenced by codeStream::getFunction().
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 185 of file dlLibraryTable.C.
References dict, 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 dict, Foam::endl(), forAll, List::size(), and WarningInFunction.
|
private |
Definition at line 53 of file dlLibraryTable.H.
|
private |
Definition at line 55 of file dlLibraryTable.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.