XMLStringRef is used to provide write access to XML attribute values. More...
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) |
XMLStringRef is used to provide write access to XML attribute values.
Definition at line 114 of file XMLString.cs.
XMLStorage::XMLStringRef::XMLStringRef | ( | XMLNode | node, |
string | attrName | ||
) | [inline] |
Definition at line 116 of file XMLString.cs.
References init().
{ init(node, attrName, ""); }
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, ""); }
XMLStorage::XMLStringRef::XMLStringRef | ( | XMLNode | node, |
string | attrName, | ||
string | def | ||
) | [inline] |
Definition at line 126 of file XMLString.cs.
References init().
{ init(node, attrName, def); }
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); }
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().
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); }
override string XMLStorage::XMLStringRef::ToString | ( | ) | [inline] |
Definition at line 146 of file XMLString.cs.
References _attrName, _node, and XMLStorage::XMLNode::get().
string XMLStorage::XMLStringRef::_attrName [protected] |
Definition at line 161 of file XMLString.cs.
Referenced by assign(), init(), and ToString().
XMLNode XMLStorage::XMLStringRef::_node [protected] |
Definition at line 160 of file XMLString.cs.
Referenced by assign(), init(), and ToString().