void CXMLObject::read ( RCFile f ) { int i; FreeMemory(); f.CreateRead ( objTag ); f.CreateRead ( objData ); f.ReadInt ( &nObjects ); nAlloc = nObjects; if (nObjects>0) { object = new PCXMLObject[nObjects]; for (i=0;i<nObjects;i++) { object[i] = NULL; StreamRead ( f,object[i] ); } } }
void CSSGraph::read ( RCFile f ) { int i,Version; FreeMemory(); f.ReadInt ( &Version ); f.CreateRead ( name ); f.ReadTerLine ( devChain,False ); f.ReadInt ( &nVertices ); if (nVertices>0) { nVAlloc = nVertices; Vertex = new PCSSVertex[nVertices]; for (i=0;i<nVertices;i++) { Vertex[i] = NULL; StreamRead ( f,Vertex[i] ); } } }