Public Member Functions | Protected Attributes

xmlstorage::XMLIntRef Class Reference

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

Collaboration diagram for xmlstorage::XMLIntRef:
Collaboration graph

List of all members.

Public Member Functions

 this (XMLNode node, char[] attr_name, int def=0)
XMLIntRef opAssign (int value)
int opCast ()
void assign (int value)

Protected Attributes

char *[] _pref

Detailed Description

type converter for integer data with write access

Definition at line 1373 of file xmlstorage.d.

Constructor & Destructor Documentation

xmlstorage::XMLIntRef::this ( XMLNode  node,
char[]  attr_name,
int  def = 0 
) [inline]

Definition at line 1376 of file xmlstorage.d.

        _pref = node.get_ref(attr_name);

        if (!(*_pref).length)

Member Function Documentation

void xmlstorage::XMLIntRef::assign ( int  value ) [inline]

Definition at line 1396 of file xmlstorage.d.

References xmlstorage::XS_INTFMT.

        *_pref = format(XS_INTFMT, value);
XMLIntRef xmlstorage::XMLIntRef::opAssign ( int  value ) [inline]

Definition at line 1384 of file xmlstorage.d.


        return this;
int xmlstorage::XMLIntRef::opCast (  ) [inline]

Definition at line 1391 of file xmlstorage.d.

        return atoi(*_pref);

Member Data Documentation

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

Definition at line 1402 of file xmlstorage.d.

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