SavvyUI C++ UI Library
Loading...
Searching...
No Matches
Models.h
Go to the documentation of this file.
1#pragma once
2
3#include "Common.h"
4
6{
9 NONE = 3
10};
11
13{
14 EQUAL = 1,
15 GT = 2,
16 GE = 3,
17 LT = 4,
18 LE = 5,
22};
23
25{
26public:
27 wstring fieldName;
29 wstring value;
30};
31
33{
34public:
35
39 wstring sortBy;
41 vector<FilterValue> filters;
42};
43
44class Pager
45{
46public:
55 virtual BOOL GetPage(const PagerRequest& request,
56 const vector<wstring>& columnNames,
57 vector<vector<wstring>>& rows,
58 __int64& totalRowCount) = 0;
59
60 virtual ~Pager() {} // Virtual destructor for proper cleanup
61};
SortType
Definition Models.h:6
@ ASCENDING
Definition Models.h:7
@ NONE
Definition Models.h:9
@ DESCENDING
Definition Models.h:8
FilterOperator
Definition Models.h:13
@ GT
Definition Models.h:15
@ LT
Definition Models.h:17
@ GE
Definition Models.h:16
@ EQUAL
Definition Models.h:14
@ LE
Definition Models.h:18
@ STARTSWITH
Definition Models.h:20
@ CONTAINS
Definition Models.h:19
@ ENDSWITH
Definition Models.h:21
Definition Models.h:25
wstring fieldName
Definition Models.h:27
wstring value
Definition Models.h:29
FilterOperator comparisonOp
Definition Models.h:28
Definition Models.h:45
virtual BOOL GetPage(const PagerRequest &request, const vector< wstring > &columnNames, vector< vector< wstring > > &rows, __int64 &totalRowCount)=0
virtual ~Pager()
Definition Models.h:60
Definition Models.h:33
wstring sortBy
Definition Models.h:39
vector< FilterValue > filters
Definition Models.h:41
__int64 startRowIndex
Definition Models.h:38
SortType sortDirection
Definition Models.h:40
int pageSize
Definition Models.h:37
long sourceComponentId
Definition Models.h:36