Public Member Functions | Protected Attributes

xmlstorage::XMLStringRef Class Reference

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

Collaboration diagram for xmlstorage::XMLStringRef:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 this (XMLNode node, char[] attr_name, char[] def=XS_EMPTY)
 this (in char[] node_name, XMLNode node, char[] attr_name, char[] def=XS_EMPTY)
XMLStringRef opAssign (in char[] value)
char[] str ()
void assign (in char[] value)

Protected Attributes

char *[] _pref

Detailed Description

type converter for string data with write access

Definition at line 1524 of file xmlstorage.d.


Constructor & Destructor Documentation

xmlstorage::XMLStringRef::this ( XMLNode  node,
char[]  attr_name,
char[]  def = XS_EMPTY 
) [inline]

Definition at line 1527 of file xmlstorage.d.

    {
        _pref = node.get_ref(attr_name);

        if (!(*_pref).length)
            assign(def);
    }
xmlstorage::XMLStringRef::this ( in char[]  node_name,
XMLNode  node,
char[]  attr_name,
char[]  def = XS_EMPTY 
) [inline]

Definition at line 1535 of file xmlstorage.d.

    {
        _pref = node.subvalue_ref(node_name, attr_name);

        if (!(*_pref).length)
            assign(def);
    }

Member Function Documentation

void xmlstorage::XMLStringRef::assign ( in char[]  value ) [inline]

Definition at line 1555 of file xmlstorage.d.

    {
        *_pref = value;
    }
XMLStringRef xmlstorage::XMLStringRef::opAssign ( in char[]  value ) [inline]

Definition at line 1543 of file xmlstorage.d.

    {
        assign(value);

        return this;
    }
char [] xmlstorage::XMLStringRef::str (  ) [inline]

Definition at line 1550 of file xmlstorage.d.

    {
        return *_pref;
    }

Member Data Documentation

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

Definition at line 1561 of file xmlstorage.d.


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