Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatMonitor Class Reference

#include <pStatMonitor.h>

Inheritance diagram for PStatMonitor:

ReferenceCount GtkStatsMonitor TextMonitor List of all members.

Public Member Functions

 PStatMonitor ()
virtual ~PStatMonitor ()
void hello_from (const string &hostname, const string &progname)
void bad_version (const string &hostname, const string &progname, int client_major, int client_minor, int server_major, int server_minor)
void set_client_data (PStatClientData *client_data)
bool is_alive () const
void close ()
INLINE const PStatClientDataget_client_data () const
INLINE string get_collector_name (int collector_index)
const RGBColorfget_collector_color (int collector_index)
INLINE bool is_client_known () const
INLINE string get_client_hostname () const
INLINE string get_client_progname () const
PStatViewget_view (int thread_index)
PStatViewget_level_view (int collector_index, int thread_index)
virtual string get_monitor_name ()=0
virtual void initialized ()
virtual void got_hello ()
virtual void got_bad_version (int client_major, int client_minor, int server_major, int server_minor)
virtual void new_collector (int collector_index)
virtual void new_thread (int thread_index)
virtual void new_data (int thread_index, int frame_number)
virtual void lost_connection ()
virtual void idle ()
virtual bool has_idle ()
virtual bool is_thread_safe ()

Private Types

typedef pmap< int, PStatViewViews
typedef pmap< int, ViewsLevelViews
typedef pmap< int, RGBColorfColors

Private Member Functions

 PT (PStatClientData) _client_data

Private Attributes

bool _client_known
string _client_hostname
string _client_progname
Views _views
LevelViews _level_views
Colors _colors

Member Typedef Documentation

typedef pmap<int, RGBColorf> PStatMonitor::Colors [private]
 

Definition at line 109 of file pStatMonitor.h.

typedef pmap<int, Views> PStatMonitor::LevelViews [private]
 

Definition at line 106 of file pStatMonitor.h.

typedef pmap<int, PStatView> PStatMonitor::Views [private]
 

Definition at line 104 of file pStatMonitor.h.

Referenced by get_level_view().


Constructor & Destructor Documentation

PStatMonitor::PStatMonitor  ) 
 

Definition at line 30 of file pStatMonitor.cxx.

References _client_known.

PStatMonitor::~PStatMonitor  )  [virtual]
 

Definition at line 40 of file pStatMonitor.cxx.


Member Function Documentation

void PStatMonitor::bad_version const string &  hostname,
const string &  progname,
int  client_major,
int  client_minor,
int  server_major,
int  server_minor
 

Definition at line 68 of file pStatMonitor.cxx.

References _client_hostname, _client_known, _client_progname, and got_bad_version().

void PStatMonitor::close  ) 
 

Definition at line 111 of file pStatMonitor.cxx.

Referenced by GtkStatsMonitor::remove_window().

INLINE const PStatClientData* PStatMonitor::get_client_data  )  const
 

Referenced by GtkStatsLabel::GtkStatsLabel(), TextMonitor::new_data(), TextMonitor::show_level(), and PStatStripChart::update().

INLINE string PStatMonitor::get_client_hostname  )  const
 

Referenced by TextMonitor::got_bad_version(), TextMonitor::got_hello(), and GtkStatsBadVersionWindow::GtkStatsBadVersionWindow().

INLINE string PStatMonitor::get_client_progname  )  const
 

Referenced by TextMonitor::got_bad_version(), TextMonitor::got_hello(), and GtkStatsBadVersionWindow::GtkStatsBadVersionWindow().

const RGBColorf & PStatMonitor::get_collector_color int  collector_index  ) 
 

Definition at line 127 of file pStatMonitor.cxx.

References _colors, PStatCollectorDef::_suggested_color, RGBColorf, and zero.

Referenced by GtkStatsStripChart::get_collector_gc(), GtkStatsPianoRoll::get_collector_gc(), and GtkStatsLabel::GtkStatsLabel().

INLINE string PStatMonitor::get_collector_name int  collector_index  ) 
 

PStatView & PStatMonitor::get_level_view int  collector_index,
int  thread_index
 

Definition at line 184 of file pStatMonitor.cxx.

References _level_views, and Views.

virtual string PStatMonitor::get_monitor_name  )  [pure virtual]
 

Implemented in GtkStatsMonitor, and TextMonitor.

PStatView & PStatMonitor::get_view int  thread_index  ) 
 

Definition at line 165 of file pStatMonitor.cxx.

References _views.

Referenced by TextMonitor::new_data().

void PStatMonitor::got_bad_version int  client_major,
int  client_minor,
int  server_major,
int  server_minor
[virtual]
 

Reimplemented in GtkStatsMonitor, and TextMonitor.

Definition at line 240 of file pStatMonitor.cxx.

Referenced by bad_version().

void PStatMonitor::got_hello  )  [virtual]
 

Reimplemented in GtkStatsMonitor, and TextMonitor.

Definition at line 225 of file pStatMonitor.cxx.

Referenced by hello_from().

bool PStatMonitor::has_idle  )  [virtual]
 

Reimplemented in GtkStatsMonitor.

Definition at line 318 of file pStatMonitor.cxx.

void PStatMonitor::hello_from const string &  hostname,
const string &  progname
 

Definition at line 51 of file pStatMonitor.cxx.

References _client_hostname, _client_known, _client_progname, and got_hello().

void PStatMonitor::idle  )  [virtual]
 

Reimplemented in GtkStatsMonitor.

Definition at line 308 of file pStatMonitor.cxx.

void PStatMonitor::initialized  )  [virtual]
 

Reimplemented in GtkStatsMonitor.

Definition at line 214 of file pStatMonitor.cxx.

Referenced by set_client_data().

bool PStatMonitor::is_alive  )  const
 

Definition at line 97 of file pStatMonitor.cxx.

INLINE bool PStatMonitor::is_client_known  )  const
 

bool PStatMonitor::is_thread_safe  )  [virtual]
 

Reimplemented in GtkStatsMonitor, and TextMonitor.

Definition at line 334 of file pStatMonitor.cxx.

void PStatMonitor::lost_connection  )  [virtual]
 

Reimplemented in GtkStatsMonitor, and TextMonitor.

Definition at line 297 of file pStatMonitor.cxx.

void PStatMonitor::new_collector int  collector_index  )  [virtual]
 

Reimplemented in GtkStatsMonitor.

Definition at line 255 of file pStatMonitor.cxx.

void PStatMonitor::new_data int  thread_index,
int  frame_number
[virtual]
 

Reimplemented in GtkStatsMonitor, and TextMonitor.

Definition at line 285 of file pStatMonitor.cxx.

void PStatMonitor::new_thread int  thread_index  )  [virtual]
 

Definition at line 270 of file pStatMonitor.cxx.

PStatMonitor::PT PStatClientData   )  [private]
 

void PStatMonitor::set_client_data PStatClientData client_data  ) 
 

Definition at line 85 of file pStatMonitor.cxx.

References initialized().


Member Data Documentation

string PStatMonitor::_client_hostname [private]
 

Definition at line 101 of file pStatMonitor.h.

Referenced by bad_version(), and hello_from().

bool PStatMonitor::_client_known [private]
 

Definition at line 100 of file pStatMonitor.h.

Referenced by bad_version(), hello_from(), and PStatMonitor().

string PStatMonitor::_client_progname [private]
 

Definition at line 102 of file pStatMonitor.h.

Referenced by bad_version(), and hello_from().

Colors PStatMonitor::_colors [private]
 

Definition at line 110 of file pStatMonitor.h.

Referenced by get_collector_color().

LevelViews PStatMonitor::_level_views [private]
 

Definition at line 107 of file pStatMonitor.h.

Referenced by get_level_view().

Views PStatMonitor::_views [private]
 

Definition at line 105 of file pStatMonitor.h.

Referenced by get_view().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:23 2003 for Panda-Tool by doxygen1.3