56 Log <<
" " << dEntry <<
nl;
79 obj->readData(dEntry.stream());
103 token tok(static_cast<label>(val));
106 const auto eq =
name.find(
'=');
108 if (eq != std::string::npos)
110 string strval(
name.substr(eq+1));
121 tok =
static_cast<label
>(val);
123 else if (Foam::readFloat(strval, fvalue))
131 tok = std::move(strval);
137 simpleObjectRegistryEntry* objPtr = this->
find(name.c_str());
146 const List<simpleRegIOobject*>& objects = *objPtr;
148 for (simpleRegIOobject* obj : objects)
156 Log <<
name.c_str() <<
" (unregistered)" <<
nl;
Abstract base class for registered object with I/O. Used in debug symbol registration.
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Same as ListOps::find_if.
void setNamedValue(std::string name, int val, bool report=false)
Set named value, but also handle embedded 'name=value' syntax.
dimensionedScalar log(const dimensionedScalar &ds)
List< token > tokenList
List of tokens, used for a IOdictionary entry.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Input/output from string buffers.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
int infoDetailLevel
Global for selective suppression of Info output.
constexpr char nl
The newline '\n' character (0x0a)
int readInt(Istream &is)
Read int from stream.
void setValues(const dictionary &dict, bool report=false)
Set values (invoke callbacks) from dictionary entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
simpleObjectRegistryEntry * 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.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
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...