Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

quantity::ReadUnit< NoUnit > Class Template Reference

specialization of template ReadUnit for NullType More...

#include <Quantity.h>

List of all members.

Private Member Functions

void set (std::string unit) const
 store the status in ReadStatus


Friends

std::istream & operator>> (std::istream &is, const ReadUnit< NoUnit > &unit)
 apply ReadUnit in an input stream chain


Detailed Description

template<>
class quantity::ReadUnit< NoUnit >

specialization of template ReadUnit for NullType

resets the unit to be assumed to empty string

Definition at line 588 of file Quantity.h.


Member Function Documentation

void quantity::ReadUnit< NoUnit >::set std::string  unit  )  const [inline, private]
 

store the status in ReadStatus

ReadStatus has declared ReadUnit a friend, so this routine can access the private _unit data member.

Definition at line 594 of file Quantity.h.


Friends And Related Function Documentation

std::istream& operator>> std::istream &  is,
const ReadUnit< NoUnit > &  unit
[friend]
 

apply ReadUnit in an input stream chain

user code can place a ReadUnit<NoUnit> object in an std::istream chain, store empty string in ReadStatus through function set (); this function is a friend of ReadUnit, thus it can not access ReadStatus::_unit directly; the reference to the istream object is returned.

Definition at line 604 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:43:59 2007 for Quantity by doxygen 1.3.6