C# Class SharpTuneCore.ECUMetaData

ファイルを表示 Open project: Merp/SharpTune Class Usage Examples

Public Methods

Method Description
ConvertXML ( string fetchPath, List &blobtables, Dictionary &t3d, Dictionary &t2d, Dictionary &t1d, String>.Dictionary imap, bool isbase ) : void

Load parameters from XML an XML file

CopyTables ( ECUMetaData d ) : void

Creates a table XEL from the template file, adding proper addresses

ECUMetaData ( AvailableDevices ad ) : System

Constructor

ECUMetaData ( AvailableDevices ad, string filepath ) : System

Constructor TODO: Change to a factory to share already-opened definitions TODO: Include more information about inheritance in the class for def-editing

ECUMetaData ( AvailableDevices ad, string fp, Mod mod ) : System

Constructor used to create new definitions using existing data

ECUMetaData ( AvailableDevices ad, string respath, bool isres ) : System
ExportEcuFlashXML ( ) : bool
ExportEcuFlashXML ( string filepath ) : bool
ExportRRRomId ( ) : XElement
ExposeTable ( string name, LookupTable lut ) : void
GetBaseRomTable ( string tablename, TableMetaData &basetable ) : bool
ImportMapFile ( string filepath, ECU image ) : void
ImportMapText ( string text, ECU image ) : void
ParseMetaData_ECUFlash ( ) : void

Read the rom identification header and include from a file

Populate ( ) : bool

Populates a 'short def' (romid + include) into a full definition

ReadEcuFlashRamTables ( XDocument xmlDoc, IXmlLineInfo info ) : bool
ReadEcuFlashRomTables ( XDocument xmlDoc, IXmlLineInfo info ) : bool
ReadEcuFlashScalings ( XDocument xmlDoc, IXmlLineInfo info ) : bool
ReadMap ( EcuMap idaMap, ECU image ) : void
ReadXML ( ) : bool

Load parameters from XML an XML file

pullScalings ( String fetchPath, List &xbs, List &xs ) : void

Pulls the scaling xelement from the definition at fetchPath

Private Methods

Method Description
AddRamTable ( TableMetaData table, int line ) : void
AddRomTable ( TableMetaData table, int line ) : void
Clear ( ) : void
GetBaseTable ( string name ) : TableMetaData
Inherit ( ) : void

Method Details

ConvertXML() public static method

Load parameters from XML an XML file
public static ConvertXML ( string fetchPath, List &blobtables, Dictionary &t3d, Dictionary &t2d, Dictionary &t1d, String>.Dictionary imap, bool isbase ) : void
fetchPath string
blobtables List
t3d Dictionary
t2d Dictionary
t1d Dictionary
imap String>.Dictionary
isbase bool
return void

CopyTables() public method

Creates a table XEL from the template file, adding proper addresses
public CopyTables ( ECUMetaData d ) : void
d ECUMetaData
return void

ECUMetaData() public method

Constructor
public ECUMetaData ( AvailableDevices ad ) : System
ad AvailableDevices
return System

ECUMetaData() public method

Constructor TODO: Change to a factory to share already-opened definitions TODO: Include more information about inheritance in the class for def-editing
public ECUMetaData ( AvailableDevices ad, string filepath ) : System
ad AvailableDevices
filepath string
return System

ECUMetaData() public method

Constructor used to create new definitions using existing data
public ECUMetaData ( AvailableDevices ad, string fp, Mod mod ) : System
ad AvailableDevices
fp string
mod Mod
return System

ECUMetaData() public method

public ECUMetaData ( AvailableDevices ad, string respath, bool isres ) : System
ad AvailableDevices
respath string
isres bool
return System

ExportEcuFlashXML() public method

public ExportEcuFlashXML ( ) : bool
return bool

ExportEcuFlashXML() public method

public ExportEcuFlashXML ( string filepath ) : bool
filepath string
return bool

ExportRRRomId() public method

public ExportRRRomId ( ) : XElement
return XElement

ExposeTable() public method

public ExposeTable ( string name, LookupTable lut ) : void
name string
lut LookupTable
return void

GetBaseRomTable() public method

public GetBaseRomTable ( string tablename, TableMetaData &basetable ) : bool
tablename string
basetable TableMetaData
return bool

ImportMapFile() public method

public ImportMapFile ( string filepath, ECU image ) : void
filepath string
image ECU
return void

ImportMapText() public method

public ImportMapText ( string text, ECU image ) : void
text string
image ECU
return void

ParseMetaData_ECUFlash() public method

Read the rom identification header and include from a file
public ParseMetaData_ECUFlash ( ) : void
return void

Populate() public method

Populates a 'short def' (romid + include) into a full definition
public Populate ( ) : bool
return bool

ReadEcuFlashRamTables() public method

public ReadEcuFlashRamTables ( XDocument xmlDoc, IXmlLineInfo info ) : bool
xmlDoc XDocument
info IXmlLineInfo
return bool

ReadEcuFlashRomTables() public method

public ReadEcuFlashRomTables ( XDocument xmlDoc, IXmlLineInfo info ) : bool
xmlDoc XDocument
info IXmlLineInfo
return bool

ReadEcuFlashScalings() public method

public ReadEcuFlashScalings ( XDocument xmlDoc, IXmlLineInfo info ) : bool
xmlDoc XDocument
info IXmlLineInfo
return bool

ReadMap() public method

public ReadMap ( EcuMap idaMap, ECU image ) : void
idaMap EcuMap
image ECU
return void

ReadXML() public method

Load parameters from XML an XML file
public ReadXML ( ) : bool
return bool

pullScalings() public static method

Pulls the scaling xelement from the definition at fetchPath
public static pullScalings ( String fetchPath, List &xbs, List &xs ) : void
fetchPath String /// Fetch path. ///
xbs List
xs List
return void