NDEVR
API Documentation
TableChange

Records changes to a table or column noting the bounds of the data adjusted. More...

Collaboration diagram for TableChange:
[legend]

Public Types

enum  TableChangeType { e_update , e_insertion , e_deletion , e_full_update }
 Enumerates the types of changes that can be recorded for a table or column. More...

Public Member Functions

 TableChange (TableChangeType type, uint04 start, uint04 size, Time time=Time::SystemTime())
 Constructs a TableChange recording a specific modification.

Public Attributes

uint04 size
 The number of rows affected by the change.
uint04 start
 The starting row index of the affected range.
Time time
 The timestamp when the change occurred.
TableChangeType type
 The kind of change that was recorded.

Detailed Description

Records changes to a table or column noting the bounds of the data adjusted.


Useful for optimized saving or mirroring of data.

Definition at line 53 of file TableColumn.h.

Member Enumeration Documentation

◆ TableChangeType

Enumerates the types of changes that can be recorded for a table or column.

Enumerator
e_update 

An existing row range was modified in place.

e_insertion 

New rows were inserted.

e_deletion 

Rows were deleted.

e_full_update 

The entire column or table was replaced or rebuilt.

Definition at line 56 of file TableColumn.h.

Constructor & Destructor Documentation

◆ TableChange()

TableChange::TableChange ( TableChangeType type,
uint04 start,
uint04 size,
Time time = Time::SystemTime() )
inline

Constructs a TableChange recording a specific modification.

Parameters
[in]typeThe kind of change that occurred.
[in]startThe starting row index of the affected range.
[in]sizeThe number of rows affected by the change.
[in]timeThe timestamp of the change. Defaults to the current system time.

Definition at line 68 of file TableColumn.h.

References size, start, Time::SystemTime(), time, and type.


The documentation for this struct was generated from the following file: