Public Member Functions | Protected Attributes

xmlstorage::XMLDoubleRef Class Reference

type converter for numeric data with write access More...

Collaboration diagram for xmlstorage::XMLDoubleRef:
Collaboration graph

List of all members.

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

Detailed Description

type converter for numeric data with write access

Definition at line 1451 of file xmlstorage.d.

Constructor & Destructor Documentation

xmlstorage::XMLDoubleRef::this ( XMLNode  node,
char[]  attr_name,
double  def = 0. 
) [inline]

Definition at line 1454 of file xmlstorage.d.

        _pref = node.get_ref(attr_name);

        if (!(*_pref).length)

Member Function Documentation

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.


        return this;
double xmlstorage::XMLDoubleRef::opCast (  ) [inline]

Definition at line 1469 of file xmlstorage.d.

        return toDouble(*_pref);

Member Data Documentation

char* [] xmlstorage::XMLDoubleRef::_pref [protected]

Definition at line 1480 of file xmlstorage.d.

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