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;
Input/output from string buffers.
T * find(const word &keyword)
Find and return an entry, nullptr on failure.
virtual void rewind()
Rewind the stream so that it may be read again.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
An input stream of tokens.
virtual void rewind()
Rewind the stream so that it may be read again.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A keyword and a list of tokens is an 'entry'.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
void setValues(const dictionary &dict, bool report=false)
Set values (invoke callbacks) from dictionary entries.
void setNamedValue(std::string name, int val, bool report=false)
Set named value, but also handle embedded 'name=value' syntax.
Abstract base class for registered object with I/O. Used in debug symbol registration.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar log(const dimensionedScalar &ds)
int readInt(Istream &is)
Read int from stream.
int infoDetailLevel
Global for selective suppression of Info output.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
List< token > tokenList
List of tokens, used for a IOdictionary entry.
constexpr char nl
The newline '\n' character (0x0a)