Public Member Functions | Protected Attributes | Private Member Functions

XMLStorage::XMLInt Class Reference

XMLInt is a type converter for integer data. More...

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

List of all members.

Public Member Functions

 XMLInt (int value)
 XMLInt (string value)
 XMLInt (string value, int def)
 XMLInt (AbstractXMLNode node, string attrName)
 XMLInt (XMLPos pos, string attrName)
 XMLInt (XMLPos pos, string attrName, int def)
 XMLInt (XMLStreamReader reader, string attrName)
 XMLInt (XMLStreamReader reader, string attrName, int def)
 XMLInt (AbstractXMLNode node, string attrName, int def)
int intValue ()
override string ToString ()

Protected Attributes

int _value

Private Member Functions

void init (AbstractXMLNode node, string attrName, int def)
void init (string value, int def)

Detailed Description

XMLInt is a type converter for integer data.

Definition at line 46 of file XMLInt.cs.


Constructor & Destructor Documentation

XMLStorage::XMLInt::XMLInt ( int  value ) [inline]

Definition at line 48 of file XMLInt.cs.

References _value.

    {
        _value = value;
    }
XMLStorage::XMLInt::XMLInt ( string  value ) [inline]

Definition at line 53 of file XMLInt.cs.

References init().

    {
        init(value, 0);
    }

Here is the call graph for this function:

XMLStorage::XMLInt::XMLInt ( string  value,
int  def 
) [inline]

Definition at line 58 of file XMLInt.cs.

References init().

    {
        init(value, def);
    }

Here is the call graph for this function:

XMLStorage::XMLInt::XMLInt ( AbstractXMLNode  node,
string  attrName 
) [inline]

Definition at line 63 of file XMLInt.cs.

References init().

    {
        init(node, attrName, 0);
    }

Here is the call graph for this function:

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

Definition at line 68 of file XMLInt.cs.

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

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

Here is the call graph for this function:

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

Definition at line 73 of file XMLInt.cs.

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

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

Here is the call graph for this function:

XMLStorage::XMLInt::XMLInt ( XMLStreamReader  reader,
string  attrName 
) [inline]

Definition at line 78 of file XMLInt.cs.

References XMLStorage::XMLStreamReader::getNode(), and init().

    {
        init(reader.getNode(), attrName, 0);
    }

Here is the call graph for this function:

XMLStorage::XMLInt::XMLInt ( XMLStreamReader  reader,
string  attrName,
int  def 
) [inline]

Definition at line 83 of file XMLInt.cs.

References XMLStorage::XMLStreamReader::getNode(), and init().

    {
        init(reader.getNode(), attrName, def);
    }

Here is the call graph for this function:

XMLStorage::XMLInt::XMLInt ( AbstractXMLNode  node,
string  attrName,
int  def 
) [inline]

Definition at line 88 of file XMLInt.cs.

References init().

    {
        init(node, attrName, def);
    }

Here is the call graph for this function:


Member Function Documentation

void XMLStorage::XMLInt::init ( AbstractXMLNode  node,
string  attrName,
int  def 
) [inline, private]

Definition at line 94 of file XMLInt.cs.

References XMLStorage::AbstractXMLNode::get().

Referenced by XMLInt().

    {
        init(node.get(attrName), def);
    }

Here is the call graph for this function:

void XMLStorage::XMLInt::init ( string  value,
int  def 
) [inline, private]

Definition at line 99 of file XMLInt.cs.

References _value.

    {
        if (string.IsNullOrEmpty(value) || !Int32.TryParse(value, out _value))
            _value = def;
    }
int XMLStorage::XMLInt::intValue (  ) [inline]

Definition at line 106 of file XMLInt.cs.

References _value.

Referenced by Example3::testRead().

    {
        return _value;
    }
override string XMLStorage::XMLInt::ToString (  ) [inline]

Definition at line 111 of file XMLInt.cs.

References _value.

    {
        return _value.ToString();
    }

Member Data Documentation

int XMLStorage::XMLInt::_value [protected]

Definition at line 116 of file XMLInt.cs.

Referenced by init(), intValue(), ToString(), and XMLInt().


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