FlightGear next
FGProps Class Reference

Property server class. More...

#include <propsProtocol.hxx>

Inherits FGProtocol, simgear::NetChannel, and SGPropertyChangeListener.

Classes

class  PropsChannel
 Props connection class. More...
 

Public Member Functions

 FGProps (const std::vector< std::string > &tokens)
 Create a new TCP server.
 
 ~FGProps ()
 Destructor.
 
bool open () override
 Start the telnet server.
 
bool process () override
 Process network activity.
 
bool close () override
 
void handleAccept () override
 Accept a new client connection.
 
void removeChannel (PropsChannel *channel)
 
- 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 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

Property server class.

This class provides a telnet-like server for remote access to FlightGear properties.

Definition at line 24 of file propsProtocol.hxx.

Constructor & Destructor Documentation

◆ FGProps()

FGProps::FGProps ( const std::vector< std::string > & tokens)

Create a new TCP server.

Parameters
tokensTokenized configuration parameters

Definition at line 742 of file propsProtocol.cxx.

◆ ~FGProps()

FGProps::~FGProps ( )

Destructor.

Definition at line 770 of file propsProtocol.cxx.

Member Function Documentation

◆ close()

bool FGProps::close ( )
overridevirtual

Reimplemented from FGProtocol.

Definition at line 817 of file propsProtocol.cxx.

◆ handleAccept()

void FGProps::handleAccept ( )
override

Accept a new client connection.

Definition at line 853 of file propsProtocol.cxx.

◆ open()

bool FGProps::open ( )
overridevirtual

Start the telnet server.

Reimplemented from FGProtocol.

Definition at line 781 of file propsProtocol.cxx.

◆ process()

bool FGProps::process ( )
overridevirtual

Process network activity.

Reimplemented from FGProtocol.

Definition at line 839 of file propsProtocol.cxx.

◆ removeChannel()

void FGProps::removeChannel ( FGProps::PropsChannel * channel)

Definition at line 864 of file propsProtocol.cxx.


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