Inheritance diagram for RomRep::HeaderCalculator:
Public Member Functions | |
HeaderCalculator (Object *map, Object *hondaecu) | |
virtual bool | canEditHeader (bool column, int columnOrRow) |
virtual RomRep::MapHeaderChangeArgs * | calculateHeaders (bool col, int columnOrRow)=0 |
virtual RomRep::MapHeaderChangeArgs * | byteChangeNotify (ByteChange *bc) |
virtual RomRep::ByteChange * | setRowHeader (int row, String *val)[] |
virtual RomRep::ByteChange * | setColumnHeader (int col, String *val)[] |
see setRow Header. | |
virtual void | mapHeaderChanged (MapHeaderChangeArgs *args) |
virtual float | getReferenceArray () __gc[]=0 |
Protected Attributes | |
Object * | m_map |
Object * | m_hondaecu |
|
|
|
This will be called when a byte changes in the Rom. You can then decide to or not to update your state (if necessary) and return a MapHeaderChangeArgs object. If the object you return is NOT null, then the Map will pretty much blindly dump the string array contents into its header arrays and fire the appreoriate events for the UI. Reimplemented in RomRep::DevHeaderCalculator, RomRep::ITBHeaderCalculator, and RomRep::NGHeaderCalculator. |
|
This is used by the map at least initially when the map is setup by passing a HEADER_EVENT_ALL int into the column or row to indicate it wants all headers. This object should know about the map its being called on so a mechanism for grabbing the header location(s) should be in place. Implemented in RomRep::DevHeaderCalculator, RomRep::ITBHeaderCalculator, RomRep::NGHeaderCalculator, RomRep::NGRowHeaderCalculator, RomRep::VT0ColumnHeaderCalculator, and RomRep::VT0RowHeaderCalculator. |
|
Called when the client (a grid page or something) needs to know whether some header can be edited. Reimplemented in RomRep::DevHeaderCalculator, and RomRep::ITBHeaderCalculator. |
|
This is a reference array mostly for the interpolation. It should be some set of values that all share the same unit for these headers. i.e. an array of rpm values (row headers) or load values (col headers) raw or otherwise Implemented in RomRep::DevHeaderCalculator, RomRep::ITBHeaderCalculator, RomRep::NGHeaderCalculator, RomRep::NGRowHeaderCalculator, RomRep::VT0ColumnHeaderCalculator, and RomRep::VT0RowHeaderCalculator. |
|
Splits up the MapHeaderChangeArgs calls into setRowHeader and setColumnHeader calls. This does not need to be overriden |
|
see setRow Header.
Reimplemented in RomRep::DevHeaderCalculator, and RomRep::ITBHeaderCalculator. |
|
These set functions should take the string, use a regex and try to extract the data. If possible, they will calculate the byte(s) to be changed and do a send byte request to the owning map. |
|
|
|
|