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);
150 Info<< objName.data() <<
" (unregistered)" <<
nl;
163 tok =
static_cast<label
>(val);
165 else if (Foam::readFloat(param.data(), fvalue))
173 tok = Foam::string(param.data(), param.size());
179 Info<< objName.data() <<
'=' << tok <<
nl;
Input/output streams with (internal or external) character storage.
Input/output from string buffers.
simpleObjectRegistryEntry * find(const word &keyword)
Similar to IStringStream but using an externally managed buffer for its input. This allows the input ...
virtual void rewind() override
Rewind the stream, clearing any old errors.
void reset(const char *buffer, size_t nbytes)
Reset input area, position to buffer start and clear errors.
An input stream of tokens.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An OSstream with internal List storage.
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 verbose=false, bool dryrun=false)
Set values (invoke callbacks) from dictionary entries.
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.
Abstract base class for registered object with I/O. Used in debug symbol registration.
A class for handling character strings derived from std::string.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Same as ListOps::find_if.
constexpr auto key(const Type &t) noexcept
Helper function to return the enum value.
messageStream Info
Information stream (stdout output on master, null elsewhere).
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 expressions::valueTypeCode::INVALID.
List< token > tokenList
List of token, used for dictionary primitive entry (for example).
constexpr char nl
The newline '\n' character (0x0a).