32 template<
class TablePtr>
36 const word& libsEntry,
37 const TablePtr& tablePtr
40 if (dict.
found(libsEntry))
44 bool allOpened = (libNames.size() > 0);
48 const fileName& libName = libNames[i];
54 nEntries = tablePtr->size();
57 bool opened = dlLibraryTable::open(libName);
58 allOpened = opened && allOpened;
63 <<
"Could not open library " << libName
66 else if (debug && (!tablePtr || tablePtr->size() <= nEntries))
69 <<
"library " << libName
70 <<
" did not introduce any new entries" bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling words, derived from string.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
#define WarningInFunction
Report a warning using Foam::Warning.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.