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 462 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 484 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 489 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 494 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 499 of file Quantity.h.

References _unit.


Friends And Related Function Documentation

friend class ReadName [friend]

declare template ReadName a friend

Definition at line 502 of file Quantity.h.

friend class ReadSymbol [friend]

declare template ReadSymbol a friend

Definition at line 505 of file Quantity.h.

friend class ReadEqual [friend]

declare template ReadEqual a friend

Definition at line 508 of file Quantity.h.

friend class ReadUnit [friend]

declare template ReadUnit a friend

Definition at line 511 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 466 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 469 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 472 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 478 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 Mon Jul 27 15:55:47 2009 for Quantities by  doxygen 1.5.3