Go to the documentation of this file.
77 void Foam::entry::raiseBadInput(
const ITstream& is)
const
79 const word& keyword = keyword_;
91 <<
"Entry '" << keyword <<
"' with invalid input" <<
nl <<
nl
98 const word& keyword = keyword_;
117 err <<
"Entry '" << keyword <<
"' has "
118 << remaining <<
" excess tokens in stream" <<
nl <<
nl
120 is.writeList(err, 0);
128 <<
"--> FOAM FATAL IO ERROR:" <<
nl;
131 <<
"Entry '" << keyword <<
"' has "
132 << remaining <<
" excess tokens in stream" <<
nl <<
nl;
135 <<
"file: " << this->
name()
155 <<
"Entry '" << keyword
156 <<
"' had no tokens in stream" <<
nl <<
nl
163 <<
"--> FOAM FATAL IO ERROR:" <<
nl
164 <<
"Entry '" << keyword
165 <<
"' had no tokens in stream" <<
nl <<
nl;
168 <<
"file: " << this->
name()
187 keyword_ =
e.keyword_;
197 if (keyword_ !=
e.keyword_)
210 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.
label nRemainingTokens() const
Return the number of remaining tokens.
static inputMode globalInputMode
The current global input-mode.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An input stream of tokens.
word name(const complex &c)
Return string representation of complex.
void operator=(const entry &e)
static void resetInputMode()
Reset the globalInputMode to merge.
Template class for intrusive linked lists.
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.
const dimensionedScalar e
Elementary charge.
bool operator==(const entry &e) const
label lineNumber() const
Const access to the current stream line number.
void checkITstream(const ITstream &is) const