Loading and Saving Graph Descriptions
The IlvGrapher class reads graphs by using the IlvGraphInputFile class, and saves graphs by using the IlvGraphOutputFile class.
IlvGraphOutputFile
The IlvGraphOutputFile class is a subclass of IlvManagerOutputFile. In this subclass, the virtual method writeObject has been redefined to add specific information about each object before its description block. In our case, this information is the layer index, the type of the object (node, link, both, or an ordinary object), as well as the connection pins. Connection pins are described in section
IlvGraphInputFile
The IlvGraphInputFile class is a subclass of IlvManagerInputFile. In this subclass the virtual method readObject has been redefined to read the specific information written by the writeObject method.