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();
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"
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
A class for handling file names.
A class for handling words, derived from string.
#define WarningInFunction
Report a warning using Foam::Warning.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.