ported utils to new pvData array API, pvput now uses pvData convert

This commit is contained in:
Matej Sekoranja
2013-11-22 10:30:29 +01:00
parent c9e70902a2
commit 0322982392
3 changed files with 68 additions and 469 deletions

View File

@@ -150,8 +150,7 @@ std::ostream& terseStructureArray(std::ostream& o, PVStructureArray::shared_poin
o << length << separator;
}
StructureArrayData data = StructureArrayData();
pvArray->get(0, length, data);
PVStructureArray::const_svector data = pvArray->view();
bool first = true;
for (size_t i = 0; i < length; i++) {
if (first)
@@ -159,7 +158,7 @@ std::ostream& terseStructureArray(std::ostream& o, PVStructureArray::shared_poin
else
o << separator;
terseStructure(o, data.data[i]);
terseStructure(o, data[i]);
}
return o;
}