RomRep::FuelMap Class Reference

all maps that are fuel will be derived from this... More...

Inheritance diagram for RomRep::FuelMap:

RomRep::Map RomRep::ByteChangeNotify RomRep::Obd0FuelMap RomRep::NGFuelMap RomRep::VT0FuelMap RomRep::DevFuelMap List of all members.

Public Member Functions

 FuelMap (int crap)
 FuelMap (int x, int y, unsigned int loc, unsigned int multloc, int ind, int mode)
 FuelMap (int x, int y, unsigned int loc, unsigned int multloc, unsigned char mltarray __gc[], int ind, int mode)
 FuelMap (int x, int y, unsigned int loc, unsigned int multloc, unsigned char mltarray __gc[], unsigned char fil __gc[], int ind, int mode)
virtual ~FuelMap ()
virtual void setMultiplierLocation (unsigned int loc)
virtual unsigned int getMultiplierLocation (unsigned int loc)
virtual void populate (unsigned char map __gc[,], unsigned char mltarray __gc[])=0
virtual void getMultipliers (int x, float mlts __gc[])=0
virtual unsigned char getIntMultipliers () __gc[]=0
virtual float calculate (int x, int y, int intval)=0
virtual int calculate (int x, int y, float mapval)=0
virtual RomRep::ByteChangesetMultiplier (int column, int val)
 Sets a multiplier (if fuel map; ign maps return null).
virtual int getMultiplierLocation (int column)
 Returns the ROM location of the multiplier.
virtual RomRep::ByteChangesetVal (int x, int y, float val)
 Sets a value in the map.
virtual void byteChangeNotify (ByteChange *bc)

Public Attributes

__event MapChangeHandler * OnMultiplierChanged

Protected Member Functions

void MultiplierChanged (int xx, int byte)
int findBestMatch (int x, int y, float target)

Protected Attributes

unsigned char mult __gc []
unsigned int multloc

Detailed Description

all maps that are fuel will be derived from this...


Constructor & Destructor Documentation

RomRep::FuelMap::FuelMap int  crap  ) 
 

RomRep::FuelMap::FuelMap int  x,
int  y,
unsigned int  loc,
unsigned int  multloc,
int  ind,
int  mode
 

RomRep::FuelMap::FuelMap int  x,
int  y,
unsigned int  loc,
unsigned int  multloc,
unsigned char mltarray  __gc[],
int  ind,
int  mode
 

RomRep::FuelMap::FuelMap int  x,
int  y,
unsigned int  loc,
unsigned int  multloc,
unsigned char mltarray  __gc[],
unsigned char fil  __gc[],
int  ind,
int  mode
 

RomRep::FuelMap::~FuelMap  )  [virtual]
 


Member Function Documentation

void RomRep::FuelMap::byteChangeNotify ByteChange bc  )  [virtual]
 

For each inherited class, this will see if the byte location applies to their object and then make the appropriate updates.

Reimplemented from RomRep::Map.

Reimplemented in RomRep::Obd0FuelMap, and RomRep::VT0FuelMap.

virtual int RomRep::FuelMap::calculate int  x,
int  y,
float  mapval
[pure virtual]
 

Takes real world value and returns an integer (0-255 byte)

This must be overridden so this base class can properly convert between bytes and real world values.

Implements RomRep::Map.

Implemented in RomRep::Obd0FuelMap, and RomRep::VT0FuelMap.

virtual float RomRep::FuelMap::calculate int  x,
int  y,
int  intval
[pure virtual]
 

Takes byte (an integer) and returns real world value

This must be overridden so this base class can properly convert between bytes and real world values.

Implements RomRep::Map.

Implemented in RomRep::Obd0FuelMap, and RomRep::VT0FuelMap.

int RomRep::FuelMap::findBestMatch int  x,
int  y,
float  target
[protected]
 

virtual unsigned char RomRep::FuelMap::getIntMultipliers  )  [pure virtual]
 

Implemented in RomRep::Obd0FuelMap.

int RomRep::FuelMap::getMultiplierLocation int  column  )  [virtual]
 

Returns the ROM location of the multiplier.

Implements RomRep::Map.

virtual unsigned int RomRep::FuelMap::getMultiplierLocation unsigned int  loc  )  [virtual]
 

virtual void RomRep::FuelMap::getMultipliers int  x,
float mlts  __gc[]
[pure virtual]
 

Implemented in RomRep::Obd0FuelMap.

void RomRep::FuelMap::MultiplierChanged int  xx,
int  byte
[protected]
 

virtual void RomRep::FuelMap::populate unsigned char map  __gc[,],
unsigned char mltarray  __gc[]
[pure virtual]
 

Implemented in RomRep::Obd0FuelMap.

RomRep::ByteChange * RomRep::FuelMap::setMultiplier int  column,
int  val
[virtual]
 

Sets a multiplier (if fuel map; ign maps return null).

Implements RomRep::Map.

virtual void RomRep::FuelMap::setMultiplierLocation unsigned int  loc  )  [virtual]
 

RomRep::ByteChange * RomRep::FuelMap::setVal int  x,
int  y,
float  val
[virtual]
 

Sets a value in the map.

Reimplemented from RomRep::Map.


Member Data Documentation

unsigned char mult RomRep::FuelMap::__gc[] [protected]
 

Reimplemented from RomRep::Map.

unsigned int RomRep::FuelMap::multloc [protected]
 

__event MapChangeHandler* RomRep::FuelMap::OnMultiplierChanged
 




BRE Documentation Home