type converter for numeric data with write access More...
Public Member Functions | |
this (XMLNode node, char[] attr_name, double def=0.) | |
XMLDoubleRef | opAssign (double value) |
double | opCast () |
void | assign (double value) |
Protected Attributes | |
char *[] | _pref |
type converter for numeric data with write access
Definition at line 1451 of file xmlstorage.d.
xmlstorage::XMLDoubleRef::this | ( | XMLNode | node, |
char[] | attr_name, | ||
double | def = 0. |
||
) | [inline] |
Definition at line 1454 of file xmlstorage.d.
void xmlstorage::XMLDoubleRef::assign | ( | double | value ) | [inline] |
Definition at line 1474 of file xmlstorage.d.
References xmlstorage::XS_FLOATFMT.
{ *_pref = format(XS_FLOATFMT, value); }
XMLDoubleRef xmlstorage::XMLDoubleRef::opAssign | ( | double | value ) | [inline] |
Definition at line 1462 of file xmlstorage.d.
{ assign(value); return this; }
double xmlstorage::XMLDoubleRef::opCast | ( | ) | [inline] |
Definition at line 1469 of file xmlstorage.d.
{ return toDouble(*_pref); }
char* [] xmlstorage::XMLDoubleRef::_pref [protected] |
Definition at line 1480 of file xmlstorage.d.