Public Member Functions | Protected Attributes | Private Member Functions

xmlstorage::XMLString Class Reference

type converter for string data More...

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

List of all members.

Public Member Functions

 this (in char[] value)
 this (in char[] value, in char[] def=XS_EMPTY)
 this (XMLNode node, char[] attr_name, char[] def=XS_EMPTY)
char[] str ()

Protected Attributes

char[] _value

Private Member Functions

void opAssign (XMLString)

Detailed Description

type converter for string data

Definition at line 1485 of file xmlstorage.d.


Constructor & Destructor Documentation

xmlstorage::XMLString::this ( in char[]  value ) [inline]

Definition at line 1488 of file xmlstorage.d.

    {
        _value = value;
    }
xmlstorage::XMLString::this ( in char[]  value,
in char[]  def = XS_EMPTY 
) [inline]

Definition at line 1493 of file xmlstorage.d.

    {
        if (value && *value)
            _value = value;
        else
            _value = def;
    }
xmlstorage::XMLString::this ( XMLNode  node,
char[]  attr_name,
char[]  def = XS_EMPTY 
) [inline]

Definition at line 1501 of file xmlstorage.d.

    {
        char[] value = node.get(attr_name);

        if (value.length)
            _value = value;
        else
            _value = def;
    }

Member Function Documentation

void xmlstorage::XMLString::opAssign ( XMLString   ) [private]
char [] xmlstorage::XMLString::str (  ) [inline]

Definition at line 1511 of file xmlstorage.d.

    {
        return _value;
    }

Member Data Documentation

char [] xmlstorage::XMLString::_value [protected]

Definition at line 1517 of file xmlstorage.d.


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