123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- #ifndef ROW_H
- #define ROW_H
- #include "src/opl.h"
- namespace OPL {
- class Row
- {
- public:
-
- Row();
-
- Row(OPL::DbTable table_name, int row_id, const RowData_T &row_data);
-
- Row(OPL::DbTable table_name, int row_id);
-
- Row(OPL::DbTable table_name);
- Row(const Row&) = default;
- Row& operator=(const Row&) = default;
-
- const RowData_T& getData() const;
- void setData(const RowData_T &value);
-
- int getRowId() const;
-
- void setRowId(int value);
- OPL::DbTable getTable() const;
-
- const QString getPosition() const;
-
- virtual const QString getTableName() const;
-
- bool isValid() const;
-
- operator QString() const;
- private:
- OPL::DbTable table;
- int rowId;
- RowData_T rowData;
- protected:
- bool hasData;
- bool valid = true;
- };
- }
- #endif
|