FlightGear next
FGGeneric Class Reference

#include <generic.hxx>

Inherits FGProtocol.

Classes

struct  _serial_prot
 

Public Member Functions

 FGGeneric (std::vector< std::string >)
 
 ~FGGeneric ()
 
bool gen_message ()
 
bool parse_message_len (int length)
 
bool open ()
 
void reinit ()
 
bool process ()
 
bool close ()
 
void setExitOnError (bool val)
 
bool getExitOnError ()
 
bool getInitOk (void)
 
- Public Member Functions inherited from FGProtocol
 FGProtocol ()
 
virtual ~FGProtocol ()
 
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 Types

enum  e_type {
  FG_BOOL = 0 , FG_INT , FG_FLOAT , FG_DOUBLE ,
  FG_STRING , FG_FIXED , FG_BYTE , FG_WORD
}
 

Detailed Description

Definition at line 17 of file generic.hxx.

Member Enumeration Documentation

◆ e_type

enum FGGeneric::e_type
protected
Enumerator
FG_BOOL 
FG_INT 
FG_FLOAT 
FG_DOUBLE 
FG_STRING 
FG_FIXED 
FG_BYTE 
FG_WORD 

Definition at line 42 of file generic.hxx.

Constructor & Destructor Documentation

◆ FGGeneric()

FGGeneric::FGGeneric ( std::vector< std::string > tokens)

Definition at line 210 of file generic.cxx.

◆ ~FGGeneric()

FGGeneric::~FGGeneric ( )

Definition at line 239 of file generic.cxx.

Member Function Documentation

◆ close()

bool FGGeneric::close ( )
virtual

Reimplemented from FGProtocol.

Definition at line 716 of file generic.cxx.

◆ gen_message()

bool FGGeneric::gen_message ( )
virtual

Reimplemented from FGProtocol.

Definition at line 460 of file generic.cxx.

◆ getExitOnError()

bool FGGeneric::getExitOnError ( )
inline

Definition at line 38 of file generic.hxx.

◆ getInitOk()

bool FGGeneric::getInitOk ( void )
inline

Definition at line 39 of file generic.hxx.

◆ open()

bool FGGeneric::open ( )
virtual

Reimplemented from FGProtocol.

Definition at line 619 of file generic.cxx.

◆ parse_message_len()

bool FGGeneric::parse_message_len ( int length)

Definition at line 609 of file generic.cxx.

◆ process()

bool FGGeneric::process ( )
virtual

Reimplemented from FGProtocol.

Definition at line 649 of file generic.cxx.

◆ reinit()

void FGGeneric::reinit ( )
virtual

Reimplemented from FGProtocol.

Definition at line 739 of file generic.cxx.

◆ setExitOnError()

void FGGeneric::setExitOnError ( bool val)
inline

Definition at line 37 of file generic.hxx.


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