-
Notifications
You must be signed in to change notification settings - Fork 0
/
CmdStatsInfo.h
37 lines (33 loc) · 1.17 KB
/
CmdStatsInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//---------------------------------------------------------------------------
#ifndef CmdStatsInfoH
#define CmdStatsInfoH
#include <stdlib.h>
//---------------------------------------------------------------------------
struct TCmdInfo {
long Count;
long CommandBytes;
long ReplyBytes;
};
//---------------------------------------------------------------------------
class TCmdStatsInfo : public TObject
{
private:
TStringList *Commands;
protected:
void __fastcall Clear();
void __fastcall ResetStats(int i);
int __fastcall GetCmdIndex(AnsiString Cmd);
public:
__fastcall TCmdStatsInfo();
__fastcall ~TCmdStatsInfo();
void __fastcall AddCommand(AnsiString Cmd);
void __fastcall RemoveCommand(AnsiString Cmd);
void __fastcall Update(AnsiString Cmd, long CmdBytes, long RepBytes);
void __fastcall ResetStats();
void __fastcall ResetStats(AnsiString Cmd);
long __fastcall GetCount(AnsiString Cmd);
long __fastcall GetCmdSize(AnsiString Cmd);
long __fastcall GetReplySize(AnsiString Cmd);
};
//---------------------------------------------------------------------------
#endif