FlightGear next
FGFlarm Class Reference

#include <flarm.hxx>

Inherits FGGarmin.

Public Member Functions

 FGFlarm ()
 
 ~FGFlarm ()
 
virtual bool gen_message ()
 
- Public Member Functions inherited from FGGarmin
 FGGarmin ()
 
 ~FGGarmin ()
 
- Public Member Functions inherited from FGNMEA
 FGNMEA ()
 
 ~FGNMEA ()
 
virtual bool open ()
 
virtual bool process ()
 
virtual bool close ()
 
- Public Member Functions inherited from FGProtocol
 FGProtocol ()
 
virtual ~FGProtocol ()
 
virtual void reinit ()
 
SGProtocolDir get_direction () const
 
void set_direction (const std::string &d)
 
double get_hz () const
 
void set_hz (double t)
 
double get_count_down () const
 
void set_count_down (double c)
 
void inc_count_down (double amt)
 
void dec_count_down (double amt)
 
void inc_count ()
 
unsigned long get_count ()
 
virtual bool parse_message ()
 
bool is_enabled () const
 
void set_enabled (const bool b)
 
SGIOChannel * get_io_channel () const
 
void set_io_channel (SGIOChannel *c)
 
void set_name (const std::string &n)
 
std::string get_name () const
 

Protected Member Functions

virtual void parse_message (const std::vector< std::string > &tokens)
 
void setDefaultConfigValue (const char *ConfigKey, const char *Value)
 
void setDefaultConfigValue (const char *ConfigKey, unsigned int Value)
 
- Protected Member Functions inherited from FGNMEA
void add_with_checksum (char *sentence, unsigned int buf_size)
 
void parse_line ()
 

Protected Attributes

unsigned int mFlarmMessages
 
SGPropertyNode_ptr mFlarmConfig
 
unsigned long mLastUpdate
 
- Protected Attributes inherited from FGGarmin
unsigned int mGarminMessages
 
bool mMetric
 
- Protected Attributes inherited from FGNMEA
char mBuf [16384]
 
unsigned int mLength
 
unsigned int mNmeaMessages
 
unsigned int mMaxReceiveLines
 
bool mBiDirectionalSupport
 
FlightProperties mFdm
 
const char * mLineFeed
 
std::string mNmeaSentence
 

Detailed Description

Definition at line 39 of file flarm.hxx.

Constructor & Destructor Documentation

◆ FGFlarm()

FGFlarm::FGFlarm ( )

Definition at line 77 of file flarm.cxx.

◆ ~FGFlarm()

FGFlarm::~FGFlarm ( )

Definition at line 123 of file flarm.cxx.

Member Function Documentation

◆ gen_message()

bool FGFlarm::gen_message ( )
virtual

Reimplemented from FGGarmin.

Definition at line 142 of file flarm.cxx.

◆ parse_message()

void FGFlarm::parse_message ( const std::vector< std::string > & tokens)
protectedvirtual

Reimplemented from FGGarmin.

Definition at line 290 of file flarm.cxx.

◆ setDefaultConfigValue() [1/2]

void FGFlarm::setDefaultConfigValue ( const char * ConfigKey,
const char * Value )
protected

Definition at line 127 of file flarm.cxx.

◆ setDefaultConfigValue() [2/2]

void FGFlarm::setDefaultConfigValue ( const char * ConfigKey,
unsigned int Value )
protected

Definition at line 134 of file flarm.cxx.

Member Data Documentation

◆ mFlarmConfig

SGPropertyNode_ptr FGFlarm::mFlarmConfig
protected

Definition at line 42 of file flarm.hxx.

◆ mFlarmMessages

unsigned int FGFlarm::mFlarmMessages
protected

Definition at line 41 of file flarm.hxx.

◆ mLastUpdate

unsigned long FGFlarm::mLastUpdate
protected

Definition at line 43 of file flarm.hxx.


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