openPilotLog
|
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries in the database to operate on. More...
#include <aentry.h>
Public Member Functions | |
AEntry (const AEntry &)=default | |
AEntry & | operator= (const AEntry &)=default |
AEntry (DataPosition position_) | |
AEntry (TableData table_data) | |
AEntry (DataPosition position_, TableData table_data) | |
void | setData (TableData table_data) |
void | setPosition (DataPosition position_) |
const DataPosition & | getPosition () |
const TableData & | getData () |
Public Attributes | |
TableData | tableData |
Protected Attributes | |
DataPosition | position |
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries in the database to operate on.
[G]: Define what data is public and what not. For objects such as DataPosition which are consumable its no biggy. Are entries the same? If so we could avoid getters and setters [F]: In the way we are using the entries atm, we do access and edit the TableData quite frequently. Maybe the data could be public, but the position private? Except for creating a new entry, the position should never really be changed.