C# Class ScoobyRom.DataFile.RomXml

ファイルを表示 Open project: SubaruDieselCrew/ScoobyRom Class Usage Examples

Public Methods

Method Description
Load ( string path ) : void
RomXml ( ) : System
TryMergeWith ( IList toUpdate ) : int
TryMergeWith ( IList toUpdate ) : int
WriteXml ( string path, RomMetadata romMetadata, IList list2D, IList list3D ) : void
XDoc ( ) : System.Xml.Linq.XDocument

Private Methods

Method Description
GetAxisXElement ( string axisType, int address, string name, string unit ) : System.Xml.Linq.XElement
GetValuesElement ( int address, string unit, TableType tableType ) : System.Xml.Linq.XElement
GetXElement ( Table2D table2D ) : System.Xml.Linq.XElement
GetXElement ( Table3D table3D ) : System.Xml.Linq.XElement
HexNum ( int num ) : string
Merge ( Table2D original, Table2D newTable ) : void
Merge ( Table3D original, Table3D newTable ) : void
MergeCommon ( Table original, Table newTable ) : void
ParseAxis ( System.Xml.Linq.XElement el, int &address, string &name, string &unit ) : void
ParseCommon ( System.Xml.Linq.XElement el, Table table ) : void
ParseHexInt ( string strToParse, XObject xObj ) : int

Parses hex number e.g."0x123af". Prefix "0x" is required.

ParseTable2D ( System.Xml.Linq.XElement el ) : Table2D
ParseTable3D ( System.Xml.Linq.XElement el ) : Table3D
ParseTableSearch ( System.Xml.Linq.XElement el ) : void
ParseValues ( System.Xml.Linq.XElement el, int &address, string &unit, TableType &tableType ) : void
ParseXml ( System.Xml.Linq.XElement root ) : void
TableSearchXElement ( ) : System.Xml.Linq.XElement
ThrowParse ( Exception ex, XObject xObj, string typeStr ) : void
ThrowXmlExceptionWithLineInfo ( string message, Exception innerException, XObject xObj ) : void

Throw XmlException with LineNumber/LinePosition info.

UpdateString ( string original, string update ) : string

Method Details

Load() public method

public Load ( string path ) : void
path string
return void

RomXml() public method

public RomXml ( ) : System
return System

TryMergeWith() public method

public TryMergeWith ( IList toUpdate ) : int
toUpdate IList
return int

TryMergeWith() public method

public TryMergeWith ( IList toUpdate ) : int
toUpdate IList
return int

WriteXml() public method

public WriteXml ( string path, RomMetadata romMetadata, IList list2D, IList list3D ) : void
path string
romMetadata RomMetadata
list2D IList
list3D IList
return void

XDoc() public static method

public static XDoc ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument