57 Log <<
" " << dEntry <<
nl;
84 obj->readData(dEntry.stream());
108 token tok(static_cast<label>(val));
111 const auto eq =
name.find(
'=');
113 if (eq != std::string::npos)
115 string strval(
name.substr(eq+1));
126 tok =
static_cast<label
>(val);
128 else if (Foam::readFloat(strval, fvalue))
136 tok = std::move(strval);
142 simpleObjectRegistryEntry* objPtr = this->
find(name.c_str());
151 const List<simpleRegIOobject*>& objects = *objPtr;
153 for (simpleRegIOobject* obj : objects)
161 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.
Input/output streams with (internal or external) character storage.
dimensionedScalar log(const dimensionedScalar &ds)
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...
void reset(const char *buffer, size_t nbytes)
Reset input area, position to buffer start and clear errors.
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.
List< token > tokenList
List of token, used for dictionary primitive entry (for example)
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 expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
An OSstream with internal List storage.
virtual void rewind() override
Rewind the stream, clearing any old errors.
OBJstream os(runTime.globalPath()/outputName)
simpleObjectRegistryEntry * find(const word &keyword)
Find and return an entry, nullptr on failure.
Similar to IStringStream but using an externally managed buffer for its input. This allows the input ...
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...