FlightGear next
FGProtocol Class Reference

#include <protocol.hxx>

Inherited by FGATCMain, FGAV400, FGAV400Sim, FGAV400WSimA, FGAV400WSimB, FGAtlas, FGDDSProps, FGGeneric, FGHLA, FGJoyClient, FGJsClient, FGLFSGlass, FGNMEA, FGNative, FGNativeCtrls, FGNativeFDM, FGNativeGUI, FGOpenGC, FGPVE, FGProps, FGRAY, FGRUL, and IGCProtocol.

Public Member Functions

 FGProtocol ()
 
virtual ~FGProtocol ()
 
virtual bool open ()
 
virtual bool process ()
 
virtual bool close ()
 
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 gen_message ()
 
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
 

Detailed Description

Definition at line 35 of file protocol.hxx.

Constructor & Destructor Documentation

◆ FGProtocol()

FGProtocol::FGProtocol ( )

Definition at line 30 of file protocol.cxx.

◆ ~FGProtocol()

FGProtocol::~FGProtocol ( )
virtual

Definition at line 41 of file protocol.cxx.

Member Function Documentation

◆ close()

◆ dec_count_down()

void FGProtocol::dec_count_down ( double amt)
inline

Definition at line 73 of file protocol.hxx.

◆ gen_message()

bool FGProtocol::gen_message ( )
virtual

Reimplemented in FGAtlas, FGAV400, FGAV400Sim, FGAV400WSimA, FGFlarm, FGGarmin, FGGeneric, FGNMEA, FGPVE, FGRAY, FGRUL, and IGCProtocol.

Definition at line 91 of file protocol.cxx.

◆ get_count()

unsigned long FGProtocol::get_count ( )
inline

Definition at line 75 of file protocol.hxx.

◆ get_count_down()

double FGProtocol::get_count_down ( ) const
inline

Definition at line 70 of file protocol.hxx.

◆ get_direction()

SGProtocolDir FGProtocol::get_direction ( ) const
inline

Definition at line 65 of file protocol.hxx.

◆ get_hz()

double FGProtocol::get_hz ( ) const
inline

Definition at line 68 of file protocol.hxx.

◆ get_io_channel()

SGIOChannel * FGProtocol::get_io_channel ( ) const
inline

Definition at line 90 of file protocol.hxx.

◆ get_name()

std::string FGProtocol::get_name ( ) const
inline

Definition at line 95 of file protocol.hxx.

◆ inc_count()

void FGProtocol::inc_count ( )
inline

Definition at line 74 of file protocol.hxx.

◆ inc_count_down()

void FGProtocol::inc_count_down ( double amt)
inline

Definition at line 72 of file protocol.hxx.

◆ is_enabled()

bool FGProtocol::is_enabled ( ) const
inline

Definition at line 87 of file protocol.hxx.

◆ open()

◆ parse_message()

bool FGProtocol::parse_message ( )
virtual

Reimplemented in FGAtlas, FGAV400, FGAV400Sim, FGAV400WSimA, FGAV400WSimB, FGPVE, FGRAY, FGRUL, and IGCProtocol.

Definition at line 105 of file protocol.cxx.

◆ process()

◆ reinit()

void FGProtocol::reinit ( )
virtual

Reimplemented in FGGeneric.

Definition at line 85 of file protocol.cxx.

◆ set_count_down()

void FGProtocol::set_count_down ( double c)
inline

Definition at line 71 of file protocol.hxx.

◆ set_direction()

void FGProtocol::set_direction ( const std::string & d)

Definition at line 111 of file protocol.cxx.

◆ set_enabled()

void FGProtocol::set_enabled ( const bool b)
inline

Definition at line 88 of file protocol.hxx.

◆ set_hz()

void FGProtocol::set_hz ( double t)
inline

Definition at line 69 of file protocol.hxx.

◆ set_io_channel()

void FGProtocol::set_io_channel ( SGIOChannel * c)
inline

Definition at line 91 of file protocol.hxx.

◆ set_name()

void FGProtocol::set_name ( const std::string & n)

Definition at line 45 of file protocol.cxx.


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