50 const std::string& msg
54 <<
"--> FOAM Warning :\n"
57 <<
" " << msg << std::endl;
63 globalInputMode = inputMode::MERGE;
91void 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
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();
Input/output from string buffers.
Foam::string str() const
Get the string - as Foam::string rather than std::string.
Template class for intrusive linked lists.
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.
Generic output stream using a standard (STL) stream.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
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.
A keyword and a list of tokens is an 'entry'.
static void resetInputMode()
Reset the globalInputMode to merge.
void operator=(const entry &e)
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
void checkITstream(const ITstream &is) const
static inputMode globalInputMode
The current global input-mode.
inputMode
The input mode options.
static void reportReadWarning(const IOstream &, const std::string &)
Report a read warning (on std::cerr)
static int disableFunctionEntries
Enable or disable use of function entries and variable expansions.
A class for handling keywords in dictionaries.
friend bool operator!=(const refineCell &rc1, const refineCell &rc2)
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
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.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)