1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef AENTRY_H
- #define AENTRY_H
- #include <QString>
- #include <QStringList>
- #include <QHash>
- #include <QPair>
- #include <QVariant>
- #include "src/database/databasetypes.h"
- class AEntry {
- protected:
- DataPosition position;
- public:
- RowData_T tableData;
- public:
- AEntry() = delete;
- AEntry(const AEntry&) = default;
- AEntry& operator=(const AEntry&) = default;
- AEntry(DataPosition position_);
- AEntry(RowData_T table_data);
- AEntry(DataPosition position_, RowData_T table_data);
- void setData(RowData_T table_data);
- void setPosition(DataPosition position_);
- const DataPosition& getPosition() const;
- const TableName_T &getTableName() const { return position.tableName; }
- const RowId_T &getRowId() const { return position.rowId; }
- const RowData_T& getData() const;
-
- operator QString() const;
- };
- #endif
|