50 const std::string& msg
54 <<
"--> FOAM Warning :\n"
57 <<
" " << msg << std::endl;
91void Foam::entry::raiseBadInput(
const ITstream& is)
const
93 const word& keyword = keyword_;
102 this->relativeName(),
105 <<
"Entry '" <<
keyword <<
"' with invalid input" <<
nl <<
nl
119 const word& keyword = keyword_;
130 this->relativeName(),
137 <<
"Entry '" << keyword
138 <<
"' has " << remaining <<
" excess tokens in stream"
146 <<
"Entry '" << keyword
147 <<
"' had no tokens in stream"
159 <<
"--> FOAM FATAL IO ERROR:" <<
nl;
164 <<
"Entry '" << keyword <<
"' has "
165 << remaining <<
" excess tokens in stream" <<
nl <<
nl;
170 <<
"Entry '" << keyword
171 <<
"' had no tokens in stream" <<
nl <<
nl;
175 <<
"file: " << this->relativeName()
193 keyword_ =
e.keyword_;
203 if (keyword_ !=
e.keyword_)
217 content1.view().size() == content2.view().size()
221 content1.view().begin(),
222 content1.view().end(),
223 content2.view().begin()
Input/output streams with (internal or external) character storage.
An IOstream is an abstract base class for all input/output systems; be they streams,...
label lineNumber() const noexcept
Const access to the current stream line number.
fileName relativeName() const
Return the name of the stream relative to the current case.
An input stream of tokens.
label nRemainingTokens() const noexcept
Number of tokens remaining.
static bool constructed
Global value for constructed job info.
An OSstream with internal List storage.
auto view() const
A string_view of buffer contents.
Generic output stream using a standard (STL) stream.
void size(const label n)
Older name for setAddressableSize.
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
A keyword and a list of tokens is an 'entry'.
entry(const keyType &keyword)
Construct from keyword.
static void resetInputMode()
Reset the globalInputMode to merge.
void operator=(const entry &e)
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
bool operator!=(const entry &e) const
void checkITstream(const ITstream &is) const
Check after reading if the input token stream has unconsumed tokens remaining or if there were no tok...
virtual autoPtr< entry > clone(const dictionary &parentDict) const =0
Construct on freestore as copy with reference to the.
static inputMode globalInputMode
The current global input-mode.
inputMode
The input mode options.
@ MERGE
Merge sub-dictionaries when possible.
virtual fileName relativeName() const =0
Return the entry name relative to the current case.
const keyType & keyword() const noexcept
Return keyword.
static void reportReadWarning(const IOstream &, const std::string &)
Report a read warning (on std::cerr).
bool operator==(const entry &e) const
static int disableFunctionEntries
Enable or disable use of function entries and variable expansions.
A class for handling keywords in dictionaries.
A class for handling words, derived from Foam::string.
int infoSwitch(const char *name, const int deflt=0)
Lookup info switch or add default value.
ILList< DLListBase, T > IDLList
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
link() noexcept=default
Default construct.