#include <Quantity.h>
Public Member Functions | |
bool | name (void) const |
return the status to read the quantity name | |
bool | symbol (void) const |
return the status to read the quantity symbol | |
bool | equal (void) const |
return the status to read the equal sign | |
std::string | unit (void) const |
return the unit symbol to be assumed | |
Static Private Attributes | |
static bool | _name = false |
whether to read the name of a quantity | |
static bool | _symbol = false |
whether to read the symbol of a quantity | |
static bool | _equal = true |
whether to read the equality sign of a quantity | |
static std::string | _unit = "" |
assume _unit | |
Friends | |
class | ReadName |
declare template ReadName a friend | |
class | ReadSymbol |
declare template ReadSymbol a friend | |
class | ReadEqual |
declare template ReadEqual a friend | |
class | ReadUnit |
declare template ReadUnit a friend |
Definition at line 211 of file Quantity.h.
bool quantity::ReadStatus::name | ( | void | ) | const [inline] |
return the status to read the quantity name
reads the private _name data member.
Definition at line 233 of file Quantity.h.
References _name.
bool quantity::ReadStatus::symbol | ( | void | ) | const [inline] |
return the status to read the quantity symbol
reads the private _symbol data member.
Definition at line 238 of file Quantity.h.
References _symbol.
bool quantity::ReadStatus::equal | ( | void | ) | const [inline] |
return the status to read the equal sign
reads the private _equal data member.
Definition at line 243 of file Quantity.h.
References _equal.
std::string quantity::ReadStatus::unit | ( | void | ) | const [inline] |
return the unit symbol to be assumed
reads the private _unit data member;
Definition at line 248 of file Quantity.h.
References _unit.
friend class ReadName [friend] |
friend class ReadSymbol [friend] |
friend class ReadEqual [friend] |
friend class ReadUnit [friend] |
bool quantity::ReadStatus::_name = false [static, private] |
whether to read the name of a quantity
default value
Definition at line 215 of file Quantity.h.
Referenced by name(), and quantity::ReadName< P >::set().
bool quantity::ReadStatus::_symbol = false [static, private] |
whether to read the symbol of a quantity
default value
Definition at line 218 of file Quantity.h.
Referenced by quantity::ReadSymbol< P >::set(), and symbol().
bool quantity::ReadStatus::_equal = true [static, private] |
whether to read the equality sign of a quantity
default value
Definition at line 221 of file Quantity.h.
Referenced by equal(), and quantity::ReadEqual< P >::set().
std::string quantity::ReadStatus::_unit = "" [static, private] |
assume _unit
default value
when reading input containing a value but no unit symbol, assume this symbol.
Definition at line 227 of file Quantity.h.
Referenced by quantity::ReadUnit< NoUnit >::set(), quantity::ReadUnit< U >::set(), and unit().