-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathTableRow.cpp
More file actions
51 lines (44 loc) · 1.15 KB
/
TableRow.cpp
File metadata and controls
51 lines (44 loc) · 1.15 KB
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
51
// TableRow.cpp: implementation of the TableRow class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TableRow.h"
#include "Field.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
TableRow::TableRow() : _status(DATA_CLEAN)
{
}
TableRow::~TableRow()
{
for( int i = 0; i < (int)values.size(); i++ )
{
if( values[i] != NULL )
{
VariantClear(values[i]);
delete values[i];
}
values[i] = NULL;
}
values.clear();
}
// ************************************************
// GetJoinId
// ************************************************
int FieldWrapper::GetJoinId()
{
return field != NULL ? ((CField*)field)->GetJoinId() : -1;
}
// ************************************************
// SetJoinId
// ************************************************
void FieldWrapper::SetJoinId(int value)
{
((CField*)field)->SetJoinId(value);
}