Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CScriptStatsTable Class Reference

#include <ScriptStats.h>

Inheritance diagram for CScriptStatsTable:
Inheritance graph
[legend]
Collaboration diagram for CScriptStatsTable:
Collaboration graph
[legend]

Public Member Functions

 CScriptStatsTable ()
 
void Add (const ScriptInterface *scriptInterface, const std::string &title)
 
void Remove (const ScriptInterface *scriptInterface)
 
virtual CStr GetName ()
 GetName: Short descriptive name of this table (should be static). More...
 
virtual CStr GetTitle ()
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
virtual size_t GetNumberRows ()
 GetNumberRows. More...
 
virtual const std::vector< ProfileColumn > & GetColumns ()
 GetColumnDescriptions. More...
 
virtual CStr GetCellText (size_t row, size_t col)
 GetCellText. More...
 
virtual AbstractProfileTableGetChild (size_t row)
 GetChild: Return a row's child table if the child is expandable. More...
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual bool IsHighlightRow (size_t row)
 IsHighlightRow. More...
 

Private Member Functions

 NONCOPYABLE (CScriptStatsTable)
 

Private Attributes

std::vector< std::pair< const ScriptInterface *, std::string > > m_ScriptInterfaces
 
std::vector< ProfileColumnm_ColumnDescriptions
 

Constructor & Destructor Documentation

CScriptStatsTable::CScriptStatsTable ( )

Member Function Documentation

void CScriptStatsTable::Add ( const ScriptInterface scriptInterface,
const std::string &  title 
)
CStr CScriptStatsTable::GetCellText ( size_t  row,
size_t  col 
)
virtual

GetCellText.

Parameters
rowRow index (the first row has index 0).
colColumn index (the first column has index 0).
Returns
Text to be displayed in the given cell.

Implements AbstractProfileTable.

AbstractProfileTable * CScriptStatsTable::GetChild ( size_t  row)
virtual

GetChild: Return a row's child table if the child is expandable.

Parameters
rowRow index (the first row has index 0).
Returns
Pointer to the child table if the given row has one. Otherwise, return 0.

Implements AbstractProfileTable.

const std::vector< ProfileColumn > & CScriptStatsTable::GetColumns ( )
virtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

CStr CScriptStatsTable::GetName ( )
virtual

GetName: Short descriptive name of this table (should be static).

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

size_t CScriptStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

CStr CScriptStatsTable::GetTitle ( )
virtual

GetTitle: Longer, explanatory text (can be dynamic).

Returns
Title for the table.

Implements AbstractProfileTable.

CScriptStatsTable::NONCOPYABLE ( CScriptStatsTable  )
private
void CScriptStatsTable::Remove ( const ScriptInterface scriptInterface)

Member Data Documentation

std::vector<ProfileColumn> CScriptStatsTable::m_ColumnDescriptions
private
std::vector<std::pair<const ScriptInterface*, std::string> > CScriptStatsTable::m_ScriptInterfaces
private

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