Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CSubsystem Class Reference

#include <Subsystems.h>

Inheritance diagram for CSubsystem:

CStreamObject CObject CAnnouncement CDependent CAlternator CAmmeter CAnnunciatorLight CAudioPanelRadio CBaseControl CBattery CBKKAP140Panel CBKKAP140Radio CDigitalClockOAT CEmergencyLocator CEngineSubsystem CExteriorLight CFuelSubsystem CGenericIndicator CGenericMonitor CHistory CLightSettingState CMagneticCompass CMarkerPanel CNavigation CPitotStaticPort CPitotStaticSubsystem CPitotStaticSwitch CPneumaticPump CPneumaticSubsystem CRadio CRotaryIgnitionSwitch CStallWarning CSteeringControl CSwitchSet CTurnCoordinator List of all members.

Public Member Functions

 CSubsystem (void)
virtual ~CSubsystem (void)
virtual int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
virtual void Write (SStream *stream)
void TypeIs (Tag t)
bool IsType (Tag t)
void Alias (Tag tag, Tag alias)
bool MsgForMe (SMessage *msg)
virtual EMessageResult ReceiveMessage (SMessage *msg)
virtual void SetGroup (int group)
virtual void Prepare (void)
virtual void TimeSlice (float dT)
virtual void Print (FILE *f)

Protected Attributes

Tag type
char type_string [8]
Tag unId
char unId_string [8]
std::map< Tag, TagaliasList
float timK
float ratK
float indn
float indnTarget
EIndicationMode indnMode
char fWAV [64]
unsigned int uNum
unsigned int gNum
EMessageHWType hwId

Detailed Description

Definition at line 281 of file Subsystems.h.


Constructor & Destructor Documentation

CSubsystem::CSubsystem void   ) 
 

Definition at line 48 of file Subsystems.cpp.

References fWAV, gNum, HW_STATE, hwId, indn, INDN_NONE, indnMode, indnTarget, ratK, SUBSYSTEM_BASE, timK, TypeIs(), unId, and uNum.

CSubsystem::~CSubsystem void   )  [virtual]
 

Definition at line 64 of file Subsystems.cpp.


Member Function Documentation

void CSubsystem::Alias Tag  tag,
Tag  alias
 

Definition at line 215 of file Subsystems.cpp.

References aliasList.

Referenced by CMixtureControl::CMixtureControl(), COilPressure::COilPressure(), COilTemperature::COilTemperature(), CTachometer::CTachometer(), and CThrottleControl::CThrottleControl().

bool CSubsystem::IsType Tag  t  ) 
 

Definition at line 209 of file Subsystems.cpp.

References type.

Referenced by CElectricalSystem::Timeslice().

bool CSubsystem::MsgForMe SMessage msg  ) 
 

Definition at line 221 of file Subsystems.cpp.

References SMessage::group, HW_UNKNOWN, hwId, unId, uNum, and SMessage::user.

Referenced by CFuelCell::ReceiveMessage(), CFuelTap::ReceiveMessage(), CBKKT76Radio::ReceiveMessage(), CTransponderRadio::ReceiveMessage(), CBKKX155Radio::ReceiveMessage(), CADFRadio::ReceiveMessage(), CNavRadio::ReceiveMessage(), CRadio::ReceiveMessage(), CDirectionalGyro::ReceiveMessage(), CAttitudeIndicator::ReceiveMessage(), CAirspeedIndicator::ReceiveMessage(), CVerticalSpeedIndicator::ReceiveMessage(), CAltimeter::ReceiveMessage(), CPneumaticPump::ReceiveMessage(), CGenericIndicator::ReceiveMessage(), CGenericMonitor::ReceiveMessage(), and CDependent::ReceiveMessage().

void CSubsystem::Prepare void   )  [virtual]
 

Definition at line 192 of file Subsystems.cpp.

void CSubsystem::Print FILE *  f  )  [virtual]
 

Reimplemented in CDependent.

Definition at line 315 of file Subsystems.cpp.

References gNum, HW_ALTERNATOR, HW_ANNUNCIATOR, HW_BATTERY, HW_BUS, HW_CIRCUIT, HW_CONTACTOR, HW_FLAP, HW_FLASHER, HW_FUSE, HW_GAUGE, HW_GEAR, HW_GENERATOR, HW_HILIFT, HW_INVERTER, HW_LIGHT, HW_OTHER, HW_RADIO, HW_SCALE, HW_SOUNDFX, HW_STATE, HW_SWITCH, HW_UNBENT, HW_UNITLESS, HW_UNKNOWN, hwId, indn, indnTarget, ratK, timK, type_string, unId_string, and uNum.

Referenced by CElectricalSystem::Print(), and CDependent::Print().

int CSubsystem::Read SStream stream,
Tag  tag
[virtual]
 

Reimplemented from CStreamObject.

Reimplemented in CDependent, CGenericMonitor, CGenericIndicator, CPneumaticPump, CEmergencyLocator, CExteriorLight, CPitotStaticSwitch, CAnnunciatorLight, CStallWarning, CLightSettingState, CSwitchSet, CBattery, CAlternator, CPitotStaticSubsystem, CAltimeter, CVerticalSpeedIndicator, CAirspeedIndicator, CPneumaticSubsystem, CAttitudeIndicator, CDirectionalGyro, CVacuumIndicator, CTurnCoordinator, CBKKAP140Panel, CAmmeter, CEngineSubsystem, COilPressure, CBaseControl, CMixtureControl, CFlapControl, CRadio, CNavRadio, CTransponderRadio, CADFRadio, CBKKT76Radio, CBKKLN89GPSRadio, CFuelSubsystem, CFuelTap, CFuelCell, CFuelHeater, CFuelMath, CFuelPump, CFuelSource, CFuelTank, CEngineFuelPump, CFuelManagement, CAPUFuelSource, and CPitotStaticPort.

Definition at line 68 of file Subsystems.cpp.

References fWAV, globals, HW_ALTERNATOR, HW_ANNUNCIATOR, HW_BATTERY, HW_BUS, HW_CIRCUIT, HW_CONTACTOR, HW_FLAP, HW_FLASHER, HW_FUSE, HW_GAUGE, HW_GEAR, HW_GENERATOR, HW_HILIFT, HW_INVERTER, HW_LIGHT, HW_RADIO, HW_SCALE, HW_SOUNDFX, HW_STATE, HW_SWITCH, HW_UNBENT, HW_UNITLESS, HW_UNKNOWN, hwId, indn, INDN_EXPONENTIAL, INDN_LINEAR, indnMode, SGlobals::logWarning, ratK, ReadFloat(), ReadString(), ReadTag(), ReadUInt(), TAG_IGNORED, TAG_READ, TagToString(), timK, type_string, unId, unId_string, uNum, and CLogFile::Write().

Referenced by CDependent::Read().

void CSubsystem::ReadFinished void   )  [virtual]
 

Reimplemented from CStreamObject.

Reimplemented in CDependent, CGenericIndicator, CBKKLN89GPSRadio, CFuelTap, CFuelCell, and CPitotStaticPort.

Definition at line 182 of file Subsystems.cpp.

Referenced by CDependent::ReadFinished().

EMessageResult CSubsystem::ReceiveMessage SMessage msg  )  [virtual]
 

Reimplemented in CDependent, CGenericMonitor, CGenericIndicator, CPneumaticPump, CAlternator, CAltimeter, CVerticalSpeedIndicator, CAirspeedIndicator, CAttitudeIndicator, CDirectionalGyro, CRadio, CNavRadio, CTransponderRadio, CADFRadio, CBKKX155Radio, CBKKT76Radio, CFuelTap, and CFuelCell.

Definition at line 248 of file Subsystems.cpp.

References aliasList, SMessage::dataType, SMessage::group, SMessage::id, indn, indnTarget, MSG_GETDATA, MSG_IGNORED, MSG_PROCESSED, MSG_SETDATA, SMessage::realData, SMessage::result, TYPE_REAL, unId, and SMessage::user.

Referenced by CDependent::ReceiveMessage(), SendMessage(), SendMessageToAmpSystems(), and SendMessageToGasSystems().

virtual void CSubsystem::SetGroup int  group  )  [inline, virtual]
 

Definition at line 298 of file Subsystems.h.

References gNum.

void CSubsystem::TimeSlice float  dT  )  [virtual]
 

Reimplemented in CDependent, CGenericMonitor, CNavRadio, CTransponderRadio, CADFRadio, CBKKX155Radio, and CBKKT76Radio.

Definition at line 294 of file Subsystems.cpp.

References indn, INDN_EXPONENTIAL, INDN_LINEAR, INDN_NONE, indnMode, indnTarget, ratK, and timK.

Referenced by CElectricalSystem::Timeslice(), and CDependent::TimeSlice().

void CSubsystem::TypeIs Tag  t  ) 
 

Definition at line 197 of file Subsystems.cpp.

References TagToString(), type, type_string, unId, and unId_string.

Referenced by CADFRadio::CADFRadio(), CAileronControl::CAileronControl(), CAileronTrimControl::CAileronTrimControl(), CAirspeedIndicator::CAirspeedIndicator(), CAlternator::CAlternator(), CAltimeter::CAltimeter(), CAmmeter::CAmmeter(), CAnnunciatorLight::CAnnunciatorLight(), CAPUFuelSource::CAPUFuelSource(), CAttitudeIndicator::CAttitudeIndicator(), CAudioPanelRadio::CAudioPanelRadio(), CBaseControl::CBaseControl(), CBattery::CBattery(), CBKKAP140Panel::CBKKAP140Panel(), CBKKAP140Radio::CBKKAP140Radio(), CBKKLN89GPSRadio::CBKKLN89GPSRadio(), CBKKT76Radio::CBKKT76Radio(), CBKKX155Radio::CBKKX155Radio(), CBrakeControl::CBrakeControl(), CCommRadio::CCommRadio(), CDigitalClockOAT::CDigitalClockOAT(), CDirectionalGyro::CDirectionalGyro(), CElevatorControl::CElevatorControl(), CElevatorTrimControl::CElevatorTrimControl(), CEmergencyLocator::CEmergencyLocator(), CEngineFuelPump::CEngineFuelPump(), CEngineSubsystem::CEngineSubsystem(), CExhaustGasTemperature::CExhaustGasTemperature(), CExteriorLight::CExteriorLight(), CFlapControl::CFlapControl(), CFuelCell::CFuelCell(), CFuelHeater::CFuelHeater(), CFuelManagement::CFuelManagement(), CFuelMath::CFuelMath(), CFuelPump::CFuelPump(), CFuelSource::CFuelSource(), CFuelSubsystem::CFuelSubsystem(), CFuelTank::CFuelTank(), CFuelTap::CFuelTap(), CHFCommRadio::CHFCommRadio(), CHistory::CHistory(), CHobbsMeter::CHobbsMeter(), CLightSettingState::CLightSettingState(), CMagneticCompass::CMagneticCompass(), CManifoldPressure::CManifoldPressure(), CMarkerPanel::CMarkerPanel(), CMixtureControl::CMixtureControl(), CNavigation::CNavigation(), CNavRadio::CNavRadio(), COilPressure::COilPressure(), COilTemperature::COilTemperature(), CPitotHeatSwitch::CPitotHeatSwitch(), CPitotStaticSubsystem::CPitotStaticSubsystem(), CPitotStaticSwitch::CPitotStaticSwitch(), CPneumaticPump::CPneumaticPump(), CPneumaticSubsystem::CPneumaticSubsystem(), CRadio::CRadio(), CRnavRadio::CRnavRadio(), CRotaryIgnitionSwitch::CRotaryIgnitionSwitch(), CRudderControl::CRudderControl(), CRudderTrimControl::CRudderTrimControl(), CStallWarning::CStallWarning(), CStaticSourceSwitch::CStaticSourceSwitch(), CSteeringControl::CSteeringControl(), CSubsystem(), CSwitchSet::CSwitchSet(), CTachometer::CTachometer(), CTachometerTimer::CTachometerTimer(), CThrottleControl::CThrottleControl(), CTransponderRadio::CTransponderRadio(), CTurnCoordinator::CTurnCoordinator(), CVacuumIndicator::CVacuumIndicator(), and CVerticalSpeedIndicator::CVerticalSpeedIndicator().

void CSubsystem::Write SStream stream  )  [virtual]
 

Reimplemented from CStreamObject.

Reimplemented in CDependent, and CPitotStaticPort.

Definition at line 187 of file Subsystems.cpp.


Member Data Documentation

std::map<Tag,Tag> CSubsystem::aliasList [protected]
 

Definition at line 315 of file Subsystems.h.

Referenced by Alias(), and ReceiveMessage().

char CSubsystem::fWAV[64] [protected]
 

Definition at line 326 of file Subsystems.h.

Referenced by CSubsystem(), and Read().

unsigned int CSubsystem::gNum [protected]
 

Reimplemented in CPitotStaticSubsystem.

Definition at line 330 of file Subsystems.h.

Referenced by CSubsystem(), Print(), and SetGroup().

EMessageHWType CSubsystem::hwId [protected]
 

Definition at line 331 of file Subsystems.h.

Referenced by CAlternator::CAlternator(), CBattery::CBattery(), CStaticSourceSwitch::CStaticSourceSwitch(), CSubsystem(), MsgForMe(), Print(), Read(), and CDependent::ReadFinished().

float CSubsystem::indn [protected]
 

Definition at line 320 of file Subsystems.h.

Referenced by CBaseControl::CBaseControl(), CMixtureControl::CMixtureControl(), COilPressure::COilPressure(), COilTemperature::COilTemperature(), CSubsystem(), CTachometer::CTachometer(), CThrottleControl::CThrottleControl(), CBaseControl::Decr(), CBaseControl::Incr(), Print(), Read(), CDirectionalGyro::ReceiveMessage(), CAttitudeIndicator::ReceiveMessage(), CAirspeedIndicator::ReceiveMessage(), CVerticalSpeedIndicator::ReceiveMessage(), CAltimeter::ReceiveMessage(), ReceiveMessage(), and TimeSlice().

EIndicationMode CSubsystem::indnMode [protected]
 

Definition at line 322 of file Subsystems.h.

Referenced by CSubsystem(), Read(), and TimeSlice().

float CSubsystem::indnTarget [protected]
 

Definition at line 321 of file Subsystems.h.

Referenced by CSubsystem(), Print(), CDirectionalGyro::ReceiveMessage(), CAttitudeIndicator::ReceiveMessage(), CAirspeedIndicator::ReceiveMessage(), CVerticalSpeedIndicator::ReceiveMessage(), CAltimeter::ReceiveMessage(), ReceiveMessage(), and TimeSlice().

float CSubsystem::ratK [protected]
 

Definition at line 319 of file Subsystems.h.

Referenced by CSubsystem(), Print(), Read(), and TimeSlice().

float CSubsystem::timK [protected]
 

Definition at line 318 of file Subsystems.h.

Referenced by CSubsystem(), Print(), Read(), and TimeSlice().

Tag CSubsystem::type [protected]
 

Reimplemented in CPitotStaticPort.

Definition at line 308 of file Subsystems.h.

Referenced by CAnnouncement::CAnnouncement(), CGenericIndicator::CGenericIndicator(), CGenericMonitor::CGenericMonitor(), IsType(), and TypeIs().

char CSubsystem::type_string[8] [protected]
 

Definition at line 309 of file Subsystems.h.

Referenced by CAnnouncement::CAnnouncement(), CGenericIndicator::CGenericIndicator(), CGenericMonitor::CGenericMonitor(), Print(), Read(), and TypeIs().

Tag CSubsystem::unId [protected]
 

Definition at line 312 of file Subsystems.h.

Referenced by CStaticSourceSwitch::CStaticSourceSwitch(), CSubsystem(), MsgForMe(), Read(), ReceiveMessage(), and TypeIs().

char CSubsystem::unId_string[8] [protected]
 

Definition at line 313 of file Subsystems.h.

Referenced by CStaticSourceSwitch::CStaticSourceSwitch(), Print(), Read(), and TypeIs().

unsigned int CSubsystem::uNum [protected]
 

Definition at line 329 of file Subsystems.h.

Referenced by CSubsystem(), MsgForMe(), Print(), and Read().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen