XMLIntRef is a type converter for integer data with write access. More...
Public Member Functions | |
XMLIntRef (XMLNode node, string attrName) | |
XMLIntRef (XMLPos pos, string attrName) | |
XMLIntRef (XMLNode node, string attrName, int def) | |
XMLIntRef (XMLPos pos, string attrName, int def) | |
int | intValue () |
void | assign (int value) |
Protected Attributes | |
XMLNode | _node |
string | _attrName |
Private Member Functions | |
void | init (XMLNode node, string attrName, int def) |
XMLIntRef is a type converter for integer data with write access.
Definition at line 122 of file XMLInt.cs.
XMLStorage::XMLIntRef::XMLIntRef | ( | XMLNode | node, |
string | attrName | ||
) | [inline] |
XMLStorage::XMLIntRef::XMLIntRef | ( | XMLPos | pos, |
string | attrName | ||
) | [inline] |
Definition at line 129 of file XMLInt.cs.
References XMLStorage::XMLPos::cur(), and init().
{ init(pos.cur(), attrName, 0); }
XMLStorage::XMLIntRef::XMLIntRef | ( | XMLNode | node, |
string | attrName, | ||
int | def | ||
) | [inline] |
XMLStorage::XMLIntRef::XMLIntRef | ( | XMLPos | pos, |
string | attrName, | ||
int | def | ||
) | [inline] |
Definition at line 139 of file XMLInt.cs.
References XMLStorage::XMLPos::cur(), and init().
{ init(pos.cur(), attrName, def); }
void XMLStorage::XMLIntRef::assign | ( | int | value ) | [inline] |
Definition at line 164 of file XMLInt.cs.
References _attrName, _node, and XMLStorage::XMLNode::put().
Referenced by init(), Example3::testWrite(), and Example2::testWrite().
void XMLStorage::XMLIntRef::init | ( | XMLNode | node, |
string | attrName, | ||
int | def | ||
) | [inline, private] |
Definition at line 144 of file XMLInt.cs.
References _attrName, _node, assign(), and XMLStorage::XMLNode::get().
Referenced by XMLIntRef().
{ _node = node; _attrName = attrName; if (node != null) if (node.get(attrName).Length == 0) assign(def); }
int XMLStorage::XMLIntRef::intValue | ( | ) | [inline] |
string XMLStorage::XMLIntRef::_attrName [protected] |
Definition at line 171 of file XMLInt.cs.
Referenced by assign(), init(), and intValue().
XMLNode XMLStorage::XMLIntRef::_node [protected] |
Definition at line 170 of file XMLInt.cs.
Referenced by assign(), init(), and intValue().