Pi-XPlane-FMC-CDU
Public Member Functions | List of all members
AbstractFMC Class Referenceabstract
Inheritance diagram for AbstractFMC:
MainFMC SplashFMC X737FMC XfmcFMC ZiboFMC

Public Member Functions

virtual std::string getName ()=0
 returns name of FMC plugin. More...
 
virtual void init ()=0
 
virtual void deInit ()=0
 de-initialize the fmc. More...
 
virtual void subscribeDataRefs ()
 subscribe to datarefs More...
 
virtual void receiveDataRef (std::string type, std::string dataref, std::string value)
 called when we receive a float dataref from the server. More...
 
virtual void keyPressEvent (int row, int col)=0
 
virtual void keyReleaseEvent (int row, int col)=0
 

Member Function Documentation

§ deInit()

virtual void AbstractFMC::deInit ( )
pure virtual

de-initialize the fmc.

This gets called whenever an FMC is to be removed from the "current" screen. Triggered from setCurrentFMC().

Implemented in X737FMC, MainFMC, ZiboFMC, SplashFMC, and XfmcFMC.

§ getName()

virtual std::string AbstractFMC::getName ( )
pure virtual

returns name of FMC plugin.

For "actual" FMCs, the name should be 4 characters, as it needs to fit on the RSKs on the Select screen. This name is also used as the index into FMCManager's actualFMCs map, to get to the actual FMC instances.

Implemented in X737FMC, MainFMC, ZiboFMC, SplashFMC, and XfmcFMC.

§ receiveDataRef()

virtual void AbstractFMC::receiveDataRef ( std::string  type,
std::string  dataref,
std::string  value 
)
inlinevirtual

called when we receive a float dataref from the server.

Reimplemented in X737FMC, ZiboFMC, and XfmcFMC.

§ subscribeDataRefs()

virtual void AbstractFMC::subscribeDataRefs ( )
inlinevirtual

subscribe to datarefs

all actual FMCs should subscribe to their datarefs here. It should be called from the actual FMC's init(), but may also be called from the FMCManager's onExtPlaneConnect() if the connection is dropped and reestablished.

Reimplemented in X737FMC, and ZiboFMC.


The documentation for this class was generated from the following file: