#include <Quantity.h>
Private Member Functions | |
void | set (std::string unit) const |
store the status in ReadStatus | |
Friends | |
std::istream & | operator>> (std::istream &is, const ReadUnit< U > &unit) |
apply ReadUnit in an input stream chain |
this template is parameterized by the Unit which should be assumed
Definition at line 522 of file Quantity.h.
|
store the status in ReadStatus ReadStatus has declared ReadUnit a friend, so this routine can access the private _unit data member. Definition at line 528 of file Quantity.h. |
|
apply ReadUnit in an input stream chain user code can place a ReadUnit<U> object in an std::istream chain, where U is the unit to be assumed; the corresponding unit symbol is then stored 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 539 of file Quantity.h. |