#include <nfilepropertyreader.h>
Inheritance diagram for regina::NFilePropertyReader:
Public Member Functions | |
virtual void | readIndividualProperty (NFile &infile, unsigned propType)=0 |
Reads an individual property from an old-style binary file. |
The mechanics of reading and writing properties of objects are described in the notes for NFilePropertyReader::readIndividualProperty() and NFile::writePropertyHeader() respectively.
Each property that can be stored on file for a particular type of object has an integer identifier called the property type. Property types must be strictly positive, and must be unique for each type of object that can store properties.
|
Reads an individual property from an old-style binary file. The property type and bookmarking details should not read; merely the contents of the property that are written to file between NFile::writePropertyHeader() and NFile::writePropertyFooter(). See the NFile::writePropertyHeader() notes for details. The property type of the property to be read will be passed in propType. If the property type is unrecognised, this routine should simply do nothing and return. If the property type is recognised, this routine should read the property and process it accordingly (e.g., store it in whatever data object is currently being read).
Implemented in regina::NAngleStructure, regina::NAngleStructureList, regina::NScript, regina::NNormalSurface, regina::NSurfaceFilter, regina::NSurfaceFilterProperties, and regina::NTriangulation. |