C# Class ScoobyRom.DataFile.RomXml

Afficher le fichier Open project: SubaruDieselCrew/ScoobyRom Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Load ( string path ) : void
path string
Résultat void

RomXml() public méthode

public RomXml ( ) : System
Résultat System

TryMergeWith() public méthode

public TryMergeWith ( IList toUpdate ) : int
toUpdate IList
Résultat int

TryMergeWith() public méthode

public TryMergeWith ( IList toUpdate ) : int
toUpdate IList
Résultat int

WriteXml() public méthode

public WriteXml ( string path, RomMetadata romMetadata, IList list2D, IList list3D ) : void
path string
romMetadata RomMetadata
list2D IList
list3D IList
Résultat void

XDoc() public static méthode

public static XDoc ( ) : System.Xml.Linq.XDocument
Résultat System.Xml.Linq.XDocument