fgms 0.11.8
The
FlightGear MultiPlayer Server
project
LIBCLI::Client Class Reference

#include <cli_client.hxx>

Public Member Functions

 Client (int fd)
 
 ~Client ()
 
template<class T >
Clientoperator<< (T v)
 
Clientoperator<< (Client &(*f)(Client &))
 
void put_char (const char &c)
 
int read_char (unsigned char &c)
 
int wait_for_input (int seconds)
 

Public Attributes

filter_tfilters
 
size_t lines_out
 
size_t max_screen_lines
 

Protected Member Functions

int count_filter (char *cmd, void *data)
 
int count_filter_init (int argc, char **argv, filter_t *filt)
 
char * join_words (int argc, char **argv)
 
int match_filter (char *cmd, void *data)
 
int match_filter_init (int argc, char **argv, filter_t *filt)
 
int range_filter (char *cmd, void *data)
 
int range_filter_init (int argc, char **argv, filter_t *filt)
 

Protected Attributes

std::ostringstream m_output
 
PRINT_MODE m_print_mode
 
netSocketm_socket
 
struct termios OldModes
 

Friends

class CLI
 
Clientcommit (Client &)
 
ClientCRLF (Client &)
 
ClientUNFILTERED (Client &)
 

Detailed Description

Definition at line 52 of file cli_client.hxx.

Constructor & Destructor Documentation

LIBCLI::Client::Client ( int  fd)

Definition at line 54 of file cli_client.cxx.

LIBCLI::Client::~Client ( )

Definition at line 101 of file cli_client.cxx.

Member Function Documentation

int LIBCLI::Client::count_filter ( char *  cmd,
void *  data 
)
protected

Definition at line 401 of file cli_client.cxx.

Referenced by count_filter_init().

int LIBCLI::Client::count_filter_init ( int  argc,
char **  argv,
filter_t filt 
)
protected

Definition at line 312 of file cli_client.cxx.

char * LIBCLI::Client::join_words ( int  argc,
char **  argv 
)
protected

Definition at line 210 of file cli_client.cxx.

int LIBCLI::Client::match_filter ( char *  cmd,
void *  data 
)
protected

Definition at line 335 of file cli_client.cxx.

Referenced by match_filter_init().

int LIBCLI::Client::match_filter_init ( int  argc,
char **  argv,
filter_t filt 
)
protected

Definition at line 242 of file cli_client.cxx.

template<class T >
Client & LIBCLI::Client::operator<< ( v)

Definition at line 91 of file cli_client.hxx.

Client & LIBCLI::Client::operator<< ( Client &(*)(Client &)  f)

Definition at line 200 of file cli_client.cxx.

void LIBCLI::Client::put_char ( const char &  c)
int LIBCLI::Client::range_filter ( char *  cmd,
void *  data 
)
protected

Definition at line 369 of file cli_client.cxx.

Referenced by range_filter_init().

int LIBCLI::Client::range_filter_init ( int  argc,
char **  argv,
filter_t filt 
)
protected

Definition at line 269 of file cli_client.cxx.

int LIBCLI::Client::read_char ( unsigned char &  c)

Definition at line 160 of file cli_client.cxx.

Referenced by LIBCLI::CLI::pager().

int LIBCLI::Client::wait_for_input ( int  seconds)

Definition at line 125 of file cli_client.cxx.

Friends And Related Function Documentation

friend class CLI
friend

Definition at line 55 of file cli_client.hxx.

Client& commit ( Client )
friend

Definition at line 430 of file cli_client.cxx.

Client& CRLF ( Client )
friend

Definition at line 471 of file cli_client.cxx.

Client& UNFILTERED ( Client )
friend

Definition at line 485 of file cli_client.cxx.

Member Data Documentation

filter_t* LIBCLI::Client::filters

Definition at line 70 of file cli_client.hxx.

Referenced by LIBCLI::commit().

size_t LIBCLI::Client::lines_out

Definition at line 68 of file cli_client.hxx.

Referenced by LIBCLI::commit(), and LIBCLI::CLI::show_prompt().

std::ostringstream LIBCLI::Client::m_output
protected

Definition at line 81 of file cli_client.hxx.

Referenced by LIBCLI::commit(), LIBCLI::CRLF(), and operator<<().

PRINT_MODE LIBCLI::Client::m_print_mode
protected

Definition at line 79 of file cli_client.hxx.

Referenced by LIBCLI::commit(), and LIBCLI::UNFILTERED().

netSocket* LIBCLI::Client::m_socket
protected

Definition at line 80 of file cli_client.hxx.

Referenced by LIBCLI::commit().

size_t LIBCLI::Client::max_screen_lines

Definition at line 69 of file cli_client.hxx.

struct termios LIBCLI::Client::OldModes
protected

Definition at line 83 of file cli_client.hxx.


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