Public Member Functions | Protected Attributes | Private Member Functions

XMLStorage::XMLStringRef Class Reference

XMLStringRef is used to provide write access to XML attribute values. More...

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

List of all members.

Public Member Functions

 XMLStringRef (XMLNode node, string attrName)
 XMLStringRef (XMLPos pos, string attrName)
 XMLStringRef (XMLNode node, string attrName, string def)
 XMLStringRef (XMLPos pos, string attrName, string def)
override string ToString ()
void assign (string value)

Protected Attributes

XMLNode _node
string _attrName

Private Member Functions

void init (XMLNode node, string attrName, string def)

Detailed Description

XMLStringRef is used to provide write access to XML attribute values.

Definition at line 114 of file XMLString.cs.


Constructor & Destructor Documentation

XMLStorage::XMLStringRef::XMLStringRef ( XMLNode  node,
string  attrName 
) [inline]

Definition at line 116 of file XMLString.cs.

References init().

    {
        init(node, attrName, "");
    }

Here is the call graph for this function:

XMLStorage::XMLStringRef::XMLStringRef ( XMLPos  pos,
string  attrName 
) [inline]

Definition at line 121 of file XMLString.cs.

References XMLStorage::XMLPos::cur(), and init().

    {
        init(pos.cur(), attrName, "");
    }

Here is the call graph for this function:

XMLStorage::XMLStringRef::XMLStringRef ( XMLNode  node,
string  attrName,
string  def 
) [inline]

Definition at line 126 of file XMLString.cs.

References init().

    {
        init(node, attrName, def);
    }

Here is the call graph for this function:

XMLStorage::XMLStringRef::XMLStringRef ( XMLPos  pos,
string  attrName,
string  def 
) [inline]

Definition at line 131 of file XMLString.cs.

References XMLStorage::XMLPos::cur(), and init().

    {
        init(pos.cur(), attrName, def);
    }

Here is the call graph for this function:


Member Function Documentation

void XMLStorage::XMLStringRef::assign ( string  value ) [inline]

Definition at line 154 of file XMLString.cs.

References _attrName, _node, and XMLStorage::XMLNode::put().

Referenced by init(), and Example2::testWrite().

    {
        if (_node != null)
            _node.put(_attrName, value);
    }

Here is the call graph for this function:

void XMLStorage::XMLStringRef::init ( XMLNode  node,
string  attrName,
string  def 
) [inline, private]

Definition at line 136 of file XMLString.cs.

References _attrName, _node, assign(), and XMLStorage::XMLNode::get().

Referenced by XMLStringRef().

    {
        _node = node;
        _attrName = attrName;

        if (node != null)
            if (node.get(attrName).Length == 0)
                assign(def);
    }

Here is the call graph for this function:

override string XMLStorage::XMLStringRef::ToString (  ) [inline]

Definition at line 146 of file XMLString.cs.

References _attrName, _node, and XMLStorage::XMLNode::get().

    {
        if (_node != null)
            return _node.get(_attrName);
        else
            return "";
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 161 of file XMLString.cs.

Referenced by assign(), init(), and ToString().

Definition at line 160 of file XMLString.cs.

Referenced by assign(), init(), and ToString().


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