quantity::ReadStatus Class Reference

store and make available the status of reading More...

#include <Quantity.h>

List of all members.

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


Detailed Description

store and make available the status of reading

Definition at line 211 of file Quantity.h.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class ReadName [friend]

declare template ReadName a friend

Definition at line 251 of file Quantity.h.

friend class ReadSymbol [friend]

declare template ReadSymbol a friend

Definition at line 254 of file Quantity.h.

friend class ReadEqual [friend]

declare template ReadEqual a friend

Definition at line 257 of file Quantity.h.

friend class ReadUnit [friend]

declare template ReadUnit a friend

Definition at line 260 of file Quantity.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Wed Apr 11 18:07:11 2012 for Quantities by  doxygen 1.5.6