Go to the documentation of this file.
56 Log <<
" " << dEntry <<
nl;
79 obj->readData(dEntry.stream());
85 Log <<
" " <<
name <<
" (unregistered)" <<
nl;
103 token tok(
static_cast<label
>(val));
106 const auto eq =
name.find(
'=');
108 if (eq != std::string::npos)
110 std::string strval(
name.substr(eq+1));
117 tok =
static_cast<label
>(val);
119 else if (Foam::readFloat(strval, fvalue))
147 Log <<
name.c_str() <<
" (unregistered)" <<
nl;
A keyword and a list of tokens is an 'entry'.
virtual void rewind()
Rewind the stream so that it may be read again.
A class for handling words, derived from Foam::string.
void setValues(const dictionary &dict, bool report=false)
Set values (invoke callbacks) from dictionary entries.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Input/output from string buffers.
A token holds an item read from Istream.
virtual void rewind()
Rewind the stream so that it may be read again.
void setNamedValue(std::string name, int val, bool report=false)
Set named value, but also handle embedded 'name=value' syntax.
An input stream of tokens.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar log(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Find index of the first occurrence that satisfies the predicate.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
int infoDetailLevel
Global for selective suppression of Info output.
List< token > tokenList
List of tokens, used for a IOdictionary entry.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
int readInt(Istream &is)
Read int from stream.
Abstract base class for registered object with I/O. Used in debug symbol registration.