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
38 wstring sortBy;
40 vector<FilterValue> filters;
41};
42
43class Pager
44{
45public:
54 virtual BOOL GetPage(const PagerRequest& request,
55 const vector<wstring>& columnNames,
56 vector<vector<wstring>>& rows,
57 __int64& totalRowCount) = 0;
58
59 virtual ~Pager() {} // Virtual destructor for proper cleanup
60};
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:44
virtual BOOL GetPage(const PagerRequest &request, const vector< wstring > &columnNames, vector< vector< wstring > > &rows, __int64 &totalRowCount)=0
virtual ~Pager()
Definition Models.h:59
Definition Models.h:33
wstring sortBy
Definition Models.h:38
vector< FilterValue > filters
Definition Models.h:40
__int64 startRowIndex
Definition Models.h:37
SortType sortDirection
Definition Models.h:39
int pageSize
Definition Models.h:36