18 #include "precompiled.h"
58 return "Network client statistics";
60 return "Network host statistics";
95 #define ROW(id, title, member) \
97 if (col == 0) return title; \
98 if (m_Peer) return CStr::FromUInt(m_Peer->member); \
131 #define ROW(id, title, member) \
132 m_LatchedData[i].push_back(CStr::FromUInt(host->peers[i].member));
137 for (
size_t i = 0; i < host->peerCount; ++i)
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
void LatchHostState(const ENetHost *host)
Class AbstractProfileTable: Profile table data model.
Locks a CMutex over this object's lifetime.
virtual size_t GetNumberRows()
GetNumberRows.
struct _ENetPeer ENetPeer
virtual CStr GetName()
GetName: Short descriptive name of this table (should be static).
#define ROW(id, title, member)
virtual CStr GetTitle()
GetTitle: Longer, explanatory text (can be dynamic).
virtual AbstractProfileTable * GetChild(size_t row)
GetChild: Return a row's child table if the child is expandable.
std::vector< ProfileColumn > m_ColumnDescriptions
virtual CStr GetCellText(size_t row, size_t col)
GetCellText.
struct _ENetHost ENetHost
Struct ProfileColumn: Describes one column of an AbstractProfileTable.
virtual const std::vector< ProfileColumn > & GetColumns()
GetColumnDescriptions.
std::vector< std::vector< CStr > > m_LatchedData