Fix UnidentifiedShape I/O
This MR fixes the I/O of the GeoUnidentifiedShape. In particular, it fixes the restore, which was broken in two points:
- the UnidentifiedShape
name
parameter was read from the DB instead of theasciiData
, because the name was read twice (the index of the vector was not modified correctly) - the UnidentifiedShape parameters were used in the wrong order and the shape was constructed in the wrong way: the constructor, in fact, was called as
GeoUnidentifiedShape(asciiData, name)
instead of the correctGeoUnidentifiedShape(name, asciiData)
This MR also adds a new CTest unit test to test the write and restore of the GeoUnidentifiedShape node.
Edited by Riccardo Maria Bianchi