48 if (dryrun && !verbose)
63 Info<<
" " << dEntry <<
nl;
102 obj->readData(dEntry.stream());
112 const std::string_view
name,
121 if (dryrun && !verbose)
126 token tok(static_cast<label>(val));
131 const auto eq =
name.find(
'=');
132 std::string_view objName =
name;
133 std::string_view param;
136 if (eq != std::string_view::npos)
139 param =
name.substr(eq+1);
143 simpleObjectRegistryEntry* objPtr = this->
find(objName.data());
150 Info<< objName.data() <<
" (unregistered)" <<
nl;
163 tok =
static_cast<label
>(val);
165 else if (Foam::readFloat(param.data(), fvalue))
179 Info<< objName.data() <<
'=' << tok <<
nl;
191 const List<simpleRegIOobject*>& objects = *objPtr;
193 for (simpleRegIOobject* obj : objects)
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.
Input/output streams with (internal or external) character storage.
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.
void setValues(const dictionary &dict, bool verbose=false, bool dryrun=false)
Set values (invoke callbacks) from dictionary entries.
constexpr char nl
The newline '\n' character (0x0a)
void setNamedValue(const std::string_view name, int val, bool verbose=false, bool dryrun=false)
Set named value, but also handle embedded 'name=value' syntax.
int readInt(Istream &is)
Read int from stream.
List< token > tokenList
List of token, used for dictionary primitive entry (for example)
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.
auto key(const Type &t) -> std::enable_if_t< std::is_enum_v< Type >, std::underlying_type_t< Type > >
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.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for handling character strings derived from std::string.
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...