Go to the documentation of this file.
50 const std::string& msg
54 <<
"--> FOAM Warning :\n"
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
112 const word& keyword = keyword_;
127 this->relativeName(),
131 err <<
"Entry '" << keyword <<
"' has "
132 << remaining <<
" excess tokens in stream" <<
nl <<
nl
134 is.writeList(err, 0);
142 <<
"--> FOAM FATAL IO ERROR:" <<
nl;
145 <<
"Entry '" << keyword <<
"' has "
146 << remaining <<
" excess tokens in stream" <<
nl <<
nl;
149 <<
"file: " << this->relativeName()
166 this->relativeName(),
169 <<
"Entry '" << keyword
170 <<
"' had no tokens in stream" <<
nl <<
nl
177 <<
"--> FOAM FATAL IO ERROR:" <<
nl
178 <<
"Entry '" << keyword
179 <<
"' had no tokens in stream" <<
nl <<
nl;
182 <<
"file: " << this->relativeName()
201 keyword_ =
e.keyword_;
211 if (keyword_ !=
e.keyword_)
224 return oss1.
str() == oss2.
str();
entry(const keyType &keyword)
Construct from keyword.
A keyword and a list of tokens is an 'entry'.
A class for handling words, derived from Foam::string.
static inputMode globalInputMode
The current global input-mode.
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.
Input/output from string buffers.
Ostream & endl(Ostream &os)
Add newline and flush stream.
inputMode
The input mode options.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
int infoSwitch(const char *name, const int deflt=0)
Lookup info switch or add default value.
A class for handling keywords in dictionaries.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An input stream of tokens.
void operator=(const entry &e)
Generic output stream using a standard (STL) stream.
static void resetInputMode()
Reset the globalInputMode to merge.
static void reportReadWarning(const IOstream &, const std::string &)
Report a read warning (on std::cerr)
Template class for intrusive linked lists.
fileName relativeName() const
Return the name of the stream relative to the current case.
static int disableFunctionEntries
Enable or disable use of function entries and variable expansions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::string str() const
Get the string - as Foam::string rather than std::string.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Merge sub-dictionaries when possible.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
bool operator!=(const entry &e) const
static bool constructed
Global value for constructed job info.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
const dimensionedScalar e
Elementary charge.
bool operator==(const entry &e) const
label nRemainingTokens() const noexcept
Number of tokens remaining.
void checkITstream(const ITstream &is) const