C# 클래스 SharpNeat.Utility.XmlIoUtils

Static helper methods for XML IO.
파일 보기 프로젝트 열기: colgreen/sharpneat

공개 메소드들

메소드 설명
MoveToElement ( XmlReader xr, bool skipCurrent ) : string

Read from the XmlReader until we encounter an element. Return the Local name of the element or null if no element was found before the end of the input.

MoveToElement ( XmlReader xr, bool skipCurrent, string elemName ) : void

Read from the XmlReader until we encounter an element. If the name doesn't match elemName then throw an exception, else return normally.

ReadAttributeAsDouble ( XmlReader xr, string attrName ) : double

Read the named attribute and parse its string value as a double.

ReadAttributeAsDoubleArray ( XmlReader xr, string attrName ) : double[]

Read the named attribute and parse its string value as an array of doubles.

ReadAttributeAsInt ( XmlReader xr, string attrName ) : int

Read the named attribute and parse its string value as an integer.

ReadAttributeAsUInt ( XmlReader xr, string attrName ) : uint

Read the named attribute and parse its string value as a uint.

WriteAttributeString ( XmlWriter xw, string attrName, double arr ) : void

Writes a double array as a comma separated list of values.

메소드 상세

MoveToElement() 공개 정적인 메소드

Read from the XmlReader until we encounter an element. Return the Local name of the element or null if no element was found before the end of the input.
public static MoveToElement ( XmlReader xr, bool skipCurrent ) : string
xr XmlReader
skipCurrent bool
리턴 string

MoveToElement() 공개 정적인 메소드

Read from the XmlReader until we encounter an element. If the name doesn't match elemName then throw an exception, else return normally.
public static MoveToElement ( XmlReader xr, bool skipCurrent, string elemName ) : void
xr XmlReader
skipCurrent bool
elemName string
리턴 void

ReadAttributeAsDouble() 공개 정적인 메소드

Read the named attribute and parse its string value as a double.
public static ReadAttributeAsDouble ( XmlReader xr, string attrName ) : double
xr XmlReader
attrName string
리턴 double

ReadAttributeAsDoubleArray() 공개 정적인 메소드

Read the named attribute and parse its string value as an array of doubles.
public static ReadAttributeAsDoubleArray ( XmlReader xr, string attrName ) : double[]
xr XmlReader
attrName string
리턴 double[]

ReadAttributeAsInt() 공개 정적인 메소드

Read the named attribute and parse its string value as an integer.
public static ReadAttributeAsInt ( XmlReader xr, string attrName ) : int
xr XmlReader
attrName string
리턴 int

ReadAttributeAsUInt() 공개 정적인 메소드

Read the named attribute and parse its string value as a uint.
public static ReadAttributeAsUInt ( XmlReader xr, string attrName ) : uint
xr XmlReader
attrName string
리턴 uint

WriteAttributeString() 공개 정적인 메소드

Writes a double array as a comma separated list of values.
public static WriteAttributeString ( XmlWriter xw, string attrName, double arr ) : void
xw System.Xml.XmlWriter
attrName string
arr double
리턴 void