5#include "include/data_types/date/year.h"
6#include "include/schema/abstract_uid_table_item.h"
18namespace ehm_dal::schema {
30 QString
text()
const override;
36 bool operator<(
const Person &rhs)
const;
50 QVariant personData(
const qint32 column, qint32 role)
const;
53 bool setPersonData(
const qint32 column,
54 const QVariant &value,
56 std::vector<qint32> &modified_columns);
60 std::unique_ptr<Data> base_data_;
63 virtual bool initInternalData() = 0;
66 bool validateYearOfBirth();
The Date class acts as a QDate wrapper for EHM format SI_Date.
Definition: date.h:17
The NamePointer class acts as a pointer to a Name table. The name string is buffered and is then resy...
Definition: name_pointer.h:18
The Pointer class represents a pointer to a table item.
Definition: pointer.h:21
The Year class represents a calendar year value. Only qint16 and quint16 are permissible.
Definition: year.h:19
The AbstractUidTableItem class represents a row in a Table with id and uid fields.
Definition: abstract_uid_table_item.h:11
QString text() const override
Returns the row's display text. This provides a convenient way to obtain a simple description of the ...
bool init() override
Initialises the table item members. This only needs to be called once per item.
namespace ehm_dal::data_types
Definition: attribute.h:6