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] ); } } }
void CMask::read ( RCFile f ) { int i; if (m) { delete[] m; m = NULL; } f.ReadInt ( &mlen ); if (mlen>0) { m = new word[mlen]; for (i=0;i<mlen;i++) f.ReadWord ( &(m[i]) ); } }
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] ); } } }