Public Member Functions | |
TypeInfoNV ("Logical") | |
Logical () | |
Logical (bool s) | |
Logical (const word &l) | |
Logical (const char *ch) | |
Logical (const Logical &)=default | |
Logical (Logical &&)=default | |
Logical & | operator= (const Logical &)=default |
Logical & | operator= (Logical &&)=default |
Logical & | operator= (const bool &b) |
bool | operator() () const |
operator bool () const | |
Logical | operator! () const |
bool | read (iIstream &is) |
bool | write (iOstream &os) const |
Static Public Member Functions | |
static bool | evaluteWord (const word &l, bool &b, int &yesNoSet) |
Protected Member Functions | |
Logical (bool s, int yns) | |
Protected Attributes | |
bool | s_ = false |
int | yesNoSet_ = 0 |
Static Protected Attributes | |
static const word | YesNo__ [4][2] = {{"Yes", "No"},{"on","off"},{"true","false"}, {"Ok","No"}} |
Definition at line 35 of file Logical.hpp.
|
inlineexplicitprotected |
Definition at line 44 of file Logical.hpp.
|
inline |
Definition at line 55 of file Logical.hpp.
Referenced by Logical::operator!().
|
inlineexplicit |
Definition at line 58 of file Logical.hpp.
Definition at line 27 of file Logical.cpp.
References pFlow::endl(), Logical::evaluteWord(), fatalErrorInFunction, fatalExit, Logical::s_, and Logical::yesNoSet_.
Logical | ( | const char * | ch | ) |
Definition at line 37 of file Logical.cpp.
TypeInfoNV | ( | "Logical" | ) |
|
inline |
Definition at line 76 of file Logical.hpp.
References Logical::s_, and Logical::yesNoSet_.
|
inline |
Definition at line 83 of file Logical.hpp.
References Logical::s_.
|
inlineexplicit |
Definition at line 88 of file Logical.hpp.
References Logical::s_.
|
inline |
Definition at line 93 of file Logical.hpp.
References Logical::Logical(), Logical::s_, and Logical::yesNoSet_.
bool read | ( | iIstream & | is | ) |
Definition at line 65 of file Logical.cpp.
References token::good(), ioErrorInFile, token::isString(), token::isWord(), IOstream::lineNumber(), IOstream::name(), IOstream::setBad(), token::stringToken(), and token::wordToken().
Referenced by pFlow::operator>>().
bool write | ( | iOstream & | os | ) | const |
Definition at line 98 of file Logical.cpp.
References IOstream::check(), and FUNCTION_NAME.
Referenced by pFlow::operator<<().
|
static |
Definition at line 42 of file Logical.cpp.
References pFlow::toUpper().
Referenced by Logical::Logical().
|
protected |
Definition at line 38 of file Logical.hpp.
Referenced by Logical::Logical(), Logical::operator bool(), Logical::operator!(), Logical::operator()(), and Logical::operator=().
|
protected |
Definition at line 40 of file Logical.hpp.
Referenced by Logical::Logical(), Logical::operator!(), and Logical::operator=().
|
inlinestaticprotected |
Definition at line 42 of file Logical.hpp.