Renamed read/writeProtoBuf to read/write

This commit is contained in:
Michael Mandl 2018-11-20 07:59:12 +01:00
parent 6f35ffda7f
commit ef5686e83e
11 changed files with 30 additions and 30 deletions

View file

@ -87,7 +87,7 @@ bool V2SvkModel::isValidIndex(const QModelIndex &index) const
}
}
void V2SvkModel::writeProtoBuf(ESGRAF48::V2SvkModel &model) const
void V2SvkModel::write(ESGRAF48::V2SvkModel &model) const
{
auto writeOneVal = [&](ESGRAF48::V2SvkModel::OneEach *modelData, int testIndex) {
if (modelData != nullptr)
@ -147,7 +147,7 @@ void V2SvkModel::writeProtoBuf(ESGRAF48::V2SvkModel &model) const
writeTwoVals(model.mutable_partizip(), 10);
}
void V2SvkModel::readProtoBuf(const ESGRAF48::V2SvkModel &model)
void V2SvkModel::read(const ESGRAF48::V2SvkModel &model)
{
auto readOneVal = [&](const ESGRAF48::V2SvkModel::OneEach &modelData, int testIndex) {
auto &testItems = m_tests.at(testIndex).items();

View file

@ -13,8 +13,8 @@ public:
unsigned int getV2Points();
unsigned int getSvkPoints();
void writeProtoBuf(ESGRAF48::V2SvkModel &model) const;
void readProtoBuf(const ESGRAF48::V2SvkModel &model);
void write(ESGRAF48::V2SvkModel &model) const;
void read(const ESGRAF48::V2SvkModel &model);
protected:
bool isValidIndex(const QModelIndex &index) const override;