1 #ifndef CSM_WOLRD_REFIDADAPTER_H
2 #define CSM_WOLRD_REFIDADAPTER_H
21 struct NestedTableWrapperBase;
41 const QVariant& value)
const = 0;
57 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const = 0;
60 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const = 0;
67 RefIdData& data,
int index,
int rowToRemove)
const = 0;
70 RefIdData& data,
int index,
int position)
const = 0;
76 const RefIdData& data,
int index)
const = 0;
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const =0
virtual ~NestedRefIdAdapterBase()
Definition: refidadapter.cpp:9
Definition: nestedtablewrapper.hpp:6
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const =0
virtual std::string getId(const RecordBase &record) const =0
RefIdAdapter & operator=(const RefIdAdapter &)
Definition: refiddata.hpp:219
Definition: refidadapter.hpp:24
virtual void setId(RecordBase &record, const std::string &id)=0
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const =0
Definition: refidcollection.hpp:24
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const =0
NestedRefIdAdapterBase()
Definition: refidadapter.cpp:7
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const =0
virtual ~RefIdAdapter()
Definition: refidadapter.cpp:5
RefIdAdapter()
Definition: refidadapter.cpp:3
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const =0
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int idnex) const =0
If called on the nest column, should return QVariant(true).
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const =0
Definition: refidadapter.hpp:49
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const =0
virtual void setData(const RefIdColumn *column, RefIdData &data, int index, const QVariant &value) const =0
If the data type does not match an exception is thrown.