Go to the documentation of this file.
45 for (
int i = 0; i < 4; ++i)
47 if (
toUpper(YesNo__[i][0]) == Ul)
53 else if (
toUpper(YesNo__[i][1]) == Ul)
72 <<
"Bad token - could not get Logical value";
88 <<
"Wrong token type - expected Logical value, found " << t;
93 return evaluteWord(w, s_, yesNoSet_);
101 os << YesNo__[yesNoSet_][0];
105 os << YesNo__[yesNoSet_][1];
static bool evaluteWord(const word &l, bool &b, int &yesNoSet)
#define fatalExit
Fatal exit.
Token class based on OpenFOAM stream, with some modifications/simplifications to be tailored to our n...
const word & stringToken() const
Return const reference to the string contents.
bool good() const
True if token is not UNDEFINED or ERROR.
word toUpper(const word &inStr)
convert a word to all caps
iOstream & endl(iOstream &os)
Add newline and flush stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool write(iOstream &os) const
Interface class for any input stream
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
void setBad()
Set stream to be bad.
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
virtual const word & name() const
Return the name of the stream.
Holds a bool value and converts strings to bool.
Logical()=default
Default constructor.
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
int32 lineNumber() const
Const access to the current stream line number.
int yesNoSet_
Set numbe of of Yes or No.
Interface class for any output stream.
const word & wordToken() const
Return const reference to the word contents.
bool isString() const
Token is STRING, VARIABLE or VERBATIM string.
bool isWord() const
Token is word or DIRECTIVE word.