Avionics
Dropship Simulator
Cas Class Reference

Crew Alerting System. More...

#include <Module.h>

Inheritance diagram for Cas:
[legend]
Collaboration diagram for Cas:
[legend]

Public Member Functions

 Cas (Bus *prmBus, Logger *prmLogger, std::vector< Watch > watches, float *prmCasGetFloatPtr)
 
void FrameMove (float fElapsedTime) override
 
- Public Member Functions inherited from Module
 Module (Bus *prmBus)
 
virtual ~Module ()
 

Private Member Functions

void AcknowledgeAllMessages () const
 
void UnacknowledgeAllMessages ()
 
bool IsMessageOnStack (std::wstring text, bool renew) const
 
bool RemoveMessage (std::wstring text) const
 
void AddMessage (std::wstring text, MessageLevel level, bool sendEmail)
 

Private Attributes

std::vector< Messagemessages
 
bool MessageFlashState = false
 
float secsincelast = -2.0f
 
float secsincereset = 0.0f
 2 second power up delay More...
 
Loggerlogger = nullptr
 2 second application start delay More...
 
std::vector< Watchwatches
 
float * casGetFloatPtr = nullptr
 
bool powered = false
 

Additional Inherited Members

- Protected Attributes inherited from Module
Busbus
 

Detailed Description

Crew Alerting System.

Definition at line 147 of file Module.h.

Constructor & Destructor Documentation

◆ Cas()

Cas::Cas ( Bus prmBus,
Logger prmLogger,
std::vector< Watch watches,
float *  prmCasGetFloatPtr 
)

Definition at line 162 of file CAS.cpp.

Member Function Documentation

◆ AcknowledgeAllMessages()

void Cas::AcknowledgeAllMessages ( ) const
private

Definition at line 169 of file CAS.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddMessage()

void Cas::AddMessage ( std::wstring  text,
MessageLevel  level,
bool  sendEmail 
)
private

uses less-than operator in Message class!

Definition at line 217 of file CAS.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FrameMove()

void Cas::FrameMove ( float  fElapsedTime)
overridevirtual

depends on EICAS power, we need this to keep running for environmental stuff

we could probably make it wait 2 seconds as long as last frame didn't add/remove anything

rules

auto-ack after 5 seconds

Implements Module.

Definition at line 6 of file CAS.cpp.

Here is the call graph for this function:

◆ IsMessageOnStack()

bool Cas::IsMessageOnStack ( std::wstring  text,
bool  renew 
) const
private

uses less-than operator in Message class!

Definition at line 178 of file CAS.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveMessage()

bool Cas::RemoveMessage ( std::wstring  text) const
private

Definition at line 201 of file CAS.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnacknowledgeAllMessages()

void Cas::UnacknowledgeAllMessages ( )
private

Definition at line 265 of file CAS.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ casGetFloatPtr

float* Cas::casGetFloatPtr = nullptr
private

Definition at line 158 of file Module.h.

◆ logger

Logger* Cas::logger = nullptr
private

2 second application start delay

Definition at line 155 of file Module.h.

◆ MessageFlashState

bool Cas::MessageFlashState = false
private

Definition at line 151 of file Module.h.

◆ messages

std::vector<Message> Cas::messages
private

Definition at line 150 of file Module.h.

◆ powered

bool Cas::powered = false
private

Definition at line 159 of file Module.h.

◆ secsincelast

float Cas::secsincelast = -2.0f
private

Definition at line 153 of file Module.h.

◆ secsincereset

float Cas::secsincereset = 0.0f
private

2 second power up delay

Definition at line 154 of file Module.h.

◆ watches

std::vector<Watch> Cas::watches
private

Definition at line 156 of file Module.h.


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