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 (const dlLibraryTable &)=delete | |
Disallow default bitwise copy construction. More... | |
~dlLibraryTable () | |
Destructor. More... | |
bool | open (const fileName &libName, const bool verbose=true) |
Open the named library, optionally with warnings if problems occur. More... | |
bool | open (const fileNameList &libNames, const bool verbose=true) |
Open the named libraries, optionally with warnings if problems occur. 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... | |
void * | findLibrary (const fileName &libName) |
Find the handle of the named library. More... | |
bool | close (const fileName &name, const bool verbose=true) |
Close the named library, optionally with warnings if problems occur. More... | |
void | operator= (const dlLibraryTable &)=delete |
Disallow default bitwise assignment. More... | |
A table of dynamically loaded libraries.
Definition at line 50 of file dlLibraryTable.H.
dlLibraryTable | ( | ) |
Construct null.
Definition at line 41 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 46 of file dlLibraryTable.C.
|
delete |
Disallow default bitwise copy construction.
~dlLibraryTable | ( | ) |
Destructor.
Definition at line 57 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, InfoInFunction, dlLibraryTable::open(), and WarningInFunction.
ClassName | ( | "dlLibraryTable" | ) |
bool open | ( | const fileName & | libName, |
const bool | verbose = true |
||
) |
Open the named library, optionally with warnings if problems occur.
Definition at line 82 of file dlLibraryTable.C.
References Foam::dlOpen(), Foam::endl(), Foam::stringOps::expand(), InfoInFunction, and WarningInFunction.
Referenced by argList::argList(), motionSolver::New(), dynamicFvMesh::New(), option::New(), functionObject::New(), GAMGAgglomeration::New(), dlLibraryTable::open(), functionObjectList::read(), Time::Time(), and dlLibraryTable::~dlLibraryTable().
bool open | ( | const fileNameList & | libNames, |
const bool | verbose = true |
||
) |
Open the named libraries, optionally with warnings if problems occur.
Definition at line 128 of file dlLibraryTable.C.
References UList< T >::empty(), forAll, 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 145 of file dlLibraryTable.C.
References dlLibraryTable::close(), UList< T >::empty(), forAll, dictionary::found(), and dictionary::lookup().
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.
void * findLibrary | ( | const fileName & | libName | ) |
Find the handle of the named library.
Definition at line 218 of file dlLibraryTable.C.
References forAllReverse.
Referenced by codedBase::updateLibrary().
bool close | ( | const fileName & | name, |
const bool | verbose = true |
||
) |
Close the named library, optionally with warnings if problems occur.
Definition at line 171 of file dlLibraryTable.C.
References Foam::dlClose(), Foam::endl(), forAllReverse, InfoInFunction, fileName::null, and WarningInFunction.
Referenced by dlLibraryTable::open().
|
delete |
Disallow default bitwise assignment.