openPilotLog
experimental::AEntry Class Reference

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>

Inheritance diagram for experimental::AEntry:
experimental::AAircraftEntry experimental::AFlightEntry experimental::APilotEntry experimental::ATailEntry

Public Member Functions

 AEntry (const AEntry &)=default
 
AEntryoperator= (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 DataPositiongetPosition ()
 
const TableData & getData ()
 

Public Attributes

TableData tableData
 

Protected Attributes

DataPosition position
 

Detailed Description

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.


The documentation for this class was generated from the following files: