50 const std::string& msg
54 <<
"--> FOAM Warning :\n" 63 globalInputMode = inputMode::MERGE;
91 void 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_)
209 OCharStream content1;
212 OCharStream content2;
217 content1.view().size() == content2.view().size()
221 content1.view().begin(),
222 content1.view().end(),
223 content2.view().begin()
Template class for intrusive linked lists.
A class for handling keywords in dictionaries.
entry(const keyType &keyword)
Construct from keyword.
void size(const label n)
Older name for setAddressableSize.
fileName relativeName() const
Return the name of the stream relative to the current case.
Input/output streams with (internal or external) character storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void operator=(const entry &e)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void checkITstream(const ITstream &is) const
Check after reading if the input token stream has unconsumed tokens remaining or if there were no tok...
inputMode
The input mode options.
int infoSwitch(const char *name, const int deflt=0)
Lookup info switch or add default value.
label nRemainingTokens() const noexcept
Number of tokens remaining.
static void resetInputMode()
Reset the globalInputMode to merge.
bool operator!=(const entry &e) const
static void reportReadWarning(const IOstream &, const std::string &)
Report a read warning (on std::cerr)
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
static int disableFunctionEntries
Enable or disable use of function entries and variable expansions.
const dimensionedScalar e
Elementary charge.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
label lineNumber() const noexcept
Const access to the current stream line number.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
static inputMode globalInputMode
The current global input-mode.
bool operator==(const entry &e) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An input stream of tokens.
static bool constructed
Global value for constructed job info.
A keyword and a list of tokens is an 'entry'.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...