-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearcherCatBuffer.h
50 lines (42 loc) · 1.47 KB
/
SearcherCatBuffer.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
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef SearcherCatBufferH
#define SearcherCatBufferH
#include <Registry.hpp> // Pascal unit
#include <FileCtrl.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <ComCtrls.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
#include "SynchronizerUnit.h"
//#include "FXProcs.h"
struct TSrchCatBufItem
{
char CatCombination[MaxCategories];
TStringList *Lines;
DynamicArray<int> ItemNums;
};
class TSearcherCatBuffer : public Classes::TList
{
public:
TSrchCatBufItem* operator[](int Index) { return Items[Index]; }
protected:
TSrchCatBufItem* __fastcall GetItm(int Index);
void __fastcall PutItm(int Index, TSrchCatBufItem *Item);
private:
void __fastcall FreeItem(int Index);
public:
__fastcall TSearcherCatBuffer(void);
__fastcall virtual ~TSearcherCatBuffer(void);
__property TSrchCatBufItem *Items[int Index] = {read=GetItm, write=PutItm/*, default*/};
HIDESBASE void __fastcall Delete(int Index);
void __fastcall ChangeItemsCount(int nCount);
};
//-- end unit ----------------------------------------------------------------
#endif // SearcherCatBuffer