Go to the documentation of this file.
39 #ifndef dlLibraryTable_H
40 #define dlLibraryTable_H
52 Ostream&
operator<<(Ostream& os,
const InfoProxy<dlLibraryTable>& info);
71 void* openLibrary(
const fileName& libName,
bool verbose);
136 void clear(
bool verbose =
true);
148 bool open(
bool verbose =
true);
151 void*
open(
const fileName& libName,
bool verbose =
true);
170 template<
class TablePtr>
174 const word& libsEntry,
175 const TablePtr& tablePtr
const UList< void * > & pointers() const
Pointers to the libraries in use. Access with caution.
A table of dynamically loaded libraries.
void * findLibrary(const fileName &libName)
Find the handle of the named library.
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
A class for handling file names.
bool close(const fileName &libName, bool verbose=true)
Close the named library, optionally warn if problems occur.
bool empty() const
True if there are no libraries loaded by the table.
InfoProxy< dlLibraryTable > info() const
Return info proxy.
void operator=(const dlLibraryTable &)=delete
No copy assignment.
void clear(bool verbose=true)
Clearing closes all libraries loaded by the table.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool append(const fileName &libName)
Add to the list of names, but do not yet open.
const UList< fileName > & names() const
Names of the libraries in use, or requested.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool open(bool verbose=true)
ClassName("dlLibraryTable")
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
The number of libraries loaded by the table.
dlLibraryTable()=default
Default construct.
~dlLibraryTable()
Destructor. Closes all libraries loaded by the table.