35 void Foam::dictionary::reportDefault
43 <<
"Dictionary: " << relativeName(
true).c_str()
44 <<
" Entry: " << keyword;
52 <<
" Default: " << deflt <<
nl;
58 template<
class Compare>
61 return hashedEntries_.sortedToc(comp);
87 readEntry<T>(keyword, val, matchOpt);
92 template<
class T,
class Predicate>
96 const Predicate& pred,
101 readCheck<T, Predicate>(keyword, val, pred, matchOpt);
110 std::initializer_list<std::pair<const char*,int>> compat,
115 readCompat<T>(keyword, compat, val, matchOpt);
137 checkITstream(is, keyword);
141 else if (writeOptionalEntries)
143 if (writeOptionalEntries > 1)
146 <<
"No optional entry: " << keyword
147 <<
" Default: " << deflt <<
nl
152 reportDefault(keyword, deflt);
177 checkITstream(is, keyword);
181 else if (writeOptionalEntries)
183 if (writeOptionalEntries > 1)
186 <<
"No optional entry: " << keyword
187 <<
" Default: " << deflt <<
nl
192 reportDefault(keyword, deflt,
true);
201 template<
class T,
class Predicate>
206 const Predicate& pred,
214 <<
"Entry '" << keyword <<
"' with invalid default in dictionary "
228 checkITstream(is, keyword);
232 raiseBadInput(is, keyword);
237 else if (writeOptionalEntries)
239 if (writeOptionalEntries > 1)
242 <<
"No optional entry: " << keyword
243 <<
" Default: " << deflt <<
nl
248 reportDefault(keyword, deflt);
256 template<
class T,
class Predicate>
261 const Predicate& pred,
269 <<
"Entry '" << keyword <<
"' with invalid default in dictionary "
283 checkITstream(is, keyword);
287 raiseBadInput(is, keyword);
292 else if (writeOptionalEntries)
294 if (writeOptionalEntries > 1)
297 <<
"No optional entry: " << keyword
298 <<
" Default: " << deflt <<
nl
303 reportDefault(keyword, deflt,
true);
328 checkITstream(is, keyword);
335 <<
"Entry '" << keyword <<
"' not found in dictionary "
344 template<
class T,
class Predicate>
349 const Predicate& pred,
361 checkITstream(is, keyword);
365 raiseBadInput(is, keyword);
373 <<
"Entry '" << keyword <<
"' not found in dictionary "
386 std::initializer_list<std::pair<const char*,int>> compat,
392 const const_searcher finder(csearchCompat(keyword, compat, matchOpt));
399 checkITstream(is, keyword);
406 <<
"Entry '" << keyword <<
"' not found in dictionary "
424 return readEntry<T>(keyword, val, matchOpt,
false);
428 template<
class T,
class Predicate>
433 const Predicate& pred,
438 return readCheck<T, Predicate>(keyword, val, pred, matchOpt,
false);
446 std::initializer_list<std::pair<const char*,int>> compat,
451 const const_searcher finder(csearchCompat(keyword, compat, matchOpt));
460 checkITstream(is, keyword);
464 else if (writeOptionalEntries)
466 if (writeOptionalEntries > 1)
469 <<
"No optional entry: " << keyword
470 <<
" Default: " << deflt <<
nl
475 reportDefault(keyword, deflt);
487 std::initializer_list<std::pair<const char*,int>> compat,
493 return readCompat<T>(keyword, compat, val, matchOpt,
false);