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

CElectricalSystem Class Reference

#include <UserVehicles.h>

Inheritance diagram for CElectricalSystem:

CStreamObject CObject List of all members.

Public Member Functions

 CElectricalSystem (const char *ampFilename)
 ~CElectricalSystem (void)
int Read (SStream *stream, Tag tag)
void ReadFinished (void)
void Write (SStream *stream)
void Timeslice (float dT)
void Print (FILE *f)

Public Attributes

std::vector< CSubsystem * > subs
CAileronControlpAileron
CElevatorControlpElevator
CRudderControlpRudder
CAileronTrimControlpAileronTrim
CElevatorTrimControlpElevatorTrim
CRudderTrimControlpRudderTrim

Detailed Description

Definition at line 233 of file UserVehicles.h.


Constructor & Destructor Documentation

CElectricalSystem::CElectricalSystem const char *  ampFilename  ) 
 

Definition at line 504 of file UserVehicles.cpp.

References CloseStream(), SStream::filename, SStream::mode, OpenStream(), pAileron, pAileronTrim, pElevator, pElevatorTrim, pRudder, pRudderTrim, and ReadFrom().

CElectricalSystem::~CElectricalSystem void   ) 
 

Definition at line 525 of file UserVehicles.cpp.

References subs.


Member Function Documentation

void CElectricalSystem::Print FILE *  f  ) 
 

Definition at line 1777 of file UserVehicles.cpp.

References CSubsystem::Print(), and subs.

Referenced by debug_dump_electrical_cb().

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

Reimplemented from CStreamObject.

Definition at line 534 of file UserVehicles.cpp.

References globals, SGlobals::logWarning, pAileron, pAileronTrim, pElevator, pElevatorTrim, pRudder, pRudderTrim, ReadFrom(), ReadString(), SkipObject(), StringToTag(), subs, SUBSYSTEM_ADF_RADIO, SUBSYSTEM_AILERON_CONTROL, SUBSYSTEM_AILERON_TRIM_CONTROL, SUBSYSTEM_AIRSPEED, SUBSYSTEM_ALTERNATOR, SUBSYSTEM_ALTIMETER, SUBSYSTEM_AMMETER, SUBSYSTEM_ANNOUNCEMENT, SUBSYSTEM_ANNUNCIATOR_LIGHT, SUBSYSTEM_ATTITUDE, SUBSYSTEM_AUDIO_PANEL_RADIO, SUBSYSTEM_BATTERY, SUBSYSTEM_BRAKE_CONTROL, SUBSYSTEM_COMM_RADIO, SUBSYSTEM_DEPENDENT, SUBSYSTEM_DIGITAL_CLOCK_OAT, SUBSYSTEM_DIRECTIONAL_GYRO, SUBSYSTEM_ELEVATOR_CONTROL, SUBSYSTEM_ELEVATOR_TRIM_CONTROL, SUBSYSTEM_EMERGENCY_LOCATOR, SUBSYSTEM_EXHAUST_GAS_TEMPERATURE, SUBSYSTEM_EXTERIOR_LIGHT, SUBSYSTEM_FLAP_CONTROL, SUBSYSTEM_FUEL_MATH, SUBSYSTEM_GENERIC_INDICATOR, SUBSYSTEM_GENERIC_MONITOR, SUBSYSTEM_HISTORY, SUBSYSTEM_HOBBS_METER, SUBSYSTEM_KAP140_PANEL, SUBSYSTEM_KAP140_RADIO, SUBSYSTEM_KLN89_GPS_RADIO, SUBSYSTEM_KT76_RADIO, SUBSYSTEM_KX155_RADIO, SUBSYSTEM_LIGHT_SETTING_STATE, SUBSYSTEM_MAGNETIC_COMPASS, SUBSYSTEM_MANIFOLD_PRESSURE, SUBSYSTEM_MARKER_PANEL, SUBSYSTEM_MIXTURE_CONTROL, SUBSYSTEM_NAV_RADIO, SUBSYSTEM_NAVIGATION, SUBSYSTEM_OIL_PRESSURE, SUBSYSTEM_OIL_TEMPERATURE, SUBSYSTEM_PITOT_HEAT_SWITCH, SUBSYSTEM_PNEUMATIC_PUMP, SUBSYSTEM_RNAV_RADIO, SUBSYSTEM_ROTARY_IGNITION_SWITCH, SUBSYSTEM_RUDDER_CONTROL, SUBSYSTEM_RUDDER_TRIM_CONTROL, SUBSYSTEM_STALL_WARNING, SUBSYSTEM_STATIC_SOURCE_SWITCH, SUBSYSTEM_STEERING_CONTROL, SUBSYSTEM_SWITCH_SET, SUBSYSTEM_TACHOMETER, SUBSYSTEM_TACHOMETER_TIMER, SUBSYSTEM_THROTTLE_CONTROL, SUBSYSTEM_TRANSPONDER_RADIO, SUBSYSTEM_TURN_COORDINATOR, SUBSYSTEM_VACUUM_INDICATOR, SUBSYSTEM_VERTICAL_SPEED, TAG_IGNORED, TAG_READ, TagToString(), and CLogFile::Write().

void CElectricalSystem::ReadFinished void   )  [virtual]
 

Reimplemented from CStreamObject.

Definition at line 1702 of file UserVehicles.cpp.

void CElectricalSystem::Timeslice float  dT  ) 
 

Definition at line 1757 of file UserVehicles.cpp.

References EVAL_UNKNOWN, CSubsystem::IsType(), CDependent::SetEvaluated(), subs, SUBSYSTEM_BASE, and CSubsystem::TimeSlice().

Referenced by CAirplane::Timeslice().

void CElectricalSystem::Write SStream stream  )  [virtual]
 

Reimplemented from CStreamObject.

Definition at line 1707 of file UserVehicles.cpp.


Member Data Documentation

CAileronControl* CElectricalSystem::pAileron
 

Definition at line 251 of file UserVehicles.h.

Referenced by CAirplane::AileronDecr(), CAirplane::AileronIncr(), CElectricalSystem(), and Read().

CAileronTrimControl* CElectricalSystem::pAileronTrim
 

Definition at line 254 of file UserVehicles.h.

Referenced by CAirplane::AileronTrimDecr(), CAirplane::AileronTrimIncr(), CElectricalSystem(), and Read().

CElevatorControl* CElectricalSystem::pElevator
 

Definition at line 252 of file UserVehicles.h.

Referenced by CElectricalSystem(), CAirplane::ElevatorDecr(), CAirplane::ElevatorIncr(), and Read().

CElevatorTrimControl* CElectricalSystem::pElevatorTrim
 

Definition at line 255 of file UserVehicles.h.

Referenced by CElectricalSystem(), CAirplane::ElevatorTrimDecr(), CAirplane::ElevatorTrimIncr(), and Read().

CRudderControl* CElectricalSystem::pRudder
 

Definition at line 253 of file UserVehicles.h.

Referenced by CElectricalSystem(), Read(), CAirplane::RudderDecr(), and CAirplane::RudderIncr().

CRudderTrimControl* CElectricalSystem::pRudderTrim
 

Definition at line 256 of file UserVehicles.h.

Referenced by CElectricalSystem(), Read(), CAirplane::RudderTrimDecr(), and CAirplane::RudderTrimIncr().

std::vector<CSubsystem*> CElectricalSystem::subs
 

Definition at line 248 of file UserVehicles.h.

Referenced by Print(), Read(), SendMessageToAmpSystems(), Timeslice(), and ~CElectricalSystem().


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