C# Class TI.Toolbox.XmlDataReaderUtils

显示文件 Open project: x893/BTool

Public Methods

Method Description
FileVersionError ( string xmlFormatVersion, string fileVersion, string xmlFileName, string moduleName ) : bool
GetBool ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, bool &value, bool defaultValue, string moduleName ) : bool
GetByte ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, byte &value, byte minValue, byte maxValue, byte defaultValue, string moduleName ) : bool
GetInt16 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, short &value, short minValue, short maxValue, short defaultValue, string moduleName ) : bool
GetInt32 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, int &value, int minValue, int maxValue, int defaultValue, string moduleName ) : bool
GetUInt32 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, uint &value, uint minValue, uint maxValue, uint defaultValue, string moduleName ) : bool
InvalidTagValueFound ( string tagName, string xmlFileName, string invalidValue, string defaultValue, string eMsg, string moduleName ) : bool
NoTagValueFound ( string tagName, string xmlFileName, string moduleName ) : bool
VerifyVersion ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, string xmlFormatVersion, string moduleName ) : bool

Method Details

FileVersionError() public method

public FileVersionError ( string xmlFormatVersion, string fileVersion, string xmlFileName, string moduleName ) : bool
xmlFormatVersion string
fileVersion string
xmlFileName string
moduleName string
return bool

GetBool() public method

public GetBool ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, bool &value, bool defaultValue, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
value bool
defaultValue bool
moduleName string
return bool

GetByte() public method

public GetByte ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, byte &value, byte minValue, byte maxValue, byte defaultValue, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
value byte
minValue byte
maxValue byte
defaultValue byte
moduleName string
return bool

GetInt16() public method

public GetInt16 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, short &value, short minValue, short maxValue, short defaultValue, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
value short
minValue short
maxValue short
defaultValue short
moduleName string
return bool

GetInt32() public method

public GetInt32 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, int &value, int minValue, int maxValue, int defaultValue, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
value int
minValue int
maxValue int
defaultValue int
moduleName string
return bool

GetUInt32() public method

public GetUInt32 ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, uint &value, uint minValue, uint maxValue, uint defaultValue, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
value uint
minValue uint
maxValue uint
defaultValue uint
moduleName string
return bool

InvalidTagValueFound() public method

public InvalidTagValueFound ( string tagName, string xmlFileName, string invalidValue, string defaultValue, string eMsg, string moduleName ) : bool
tagName string
xmlFileName string
invalidValue string
defaultValue string
eMsg string
moduleName string
return bool

NoTagValueFound() public method

public NoTagValueFound ( string tagName, string xmlFileName, string moduleName ) : bool
tagName string
xmlFileName string
moduleName string
return bool

VerifyVersion() public method

public VerifyVersion ( XmlDocument xmlDocument, string xmlFileName, string xmlTag, string tagName, string xmlFormatVersion, string moduleName ) : bool
xmlDocument System.Xml.XmlDocument
xmlFileName string
xmlTag string
tagName string
xmlFormatVersion string
moduleName string
return bool