Public Member Functions | List of all members
dlLibraryTable Class Reference

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...
 

Detailed Description

A table of dynamically loaded libraries.

Source files

Definition at line 49 of file dlLibraryTable.H.

Constructor & Destructor Documentation

◆ dlLibraryTable() [1/2]

Construct null.

Definition at line 40 of file dlLibraryTable.C.

◆ dlLibraryTable() [2/2]

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.

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "dlLibraryTable"  )

◆ open() [1/3]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ close()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findLibrary()

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().

Here is the call graph for this function:

◆ open() [2/3]

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().

Here is the call graph for this function:

◆ open() [3/3]

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.

Here is the call graph for this function:

The documentation for this class was generated from the following files: