Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

GLNode.C

Go to the documentation of this file.
00001 // Copyright (C) 2001, Compaq Computer Corporation
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // Created on Tue Mar 11 13:44:17 PST 1997 by heydon
00020 
00021 // Last modified on Sat Apr 30 16:35:25 EDT 2005 by ken@xorian.net
00022 //      modified on Tue Dec 16 00:38:53 PST 1997 by heydon
00023 
00024 #include <Basics.H>
00025 #include <FS.H>
00026 #include <CacheIndex.H>
00027 #include <Derived.H>
00028 #include <GraphLog.H>
00029 #include "GLNode.H"
00030 
00031 using std::istream;
00032 using std::ostream;
00033 
00034 void GLNode::Write(ostream &ofs) const throw (FS::Failure)
00035 {
00036     FS::Write(ofs, (char *)(&(this->ci)), sizeof(CacheEntry::Index));
00037     this->kids->Write(ofs);
00038     this->refs->Write(ofs);
00039 }
00040 
00041 void GLNode::Read(istream &ifs) throw (FS::Failure, FS::EndOfFile)
00042 {
00043     FS::Read(ifs, (char *)(&(this->ci)), sizeof(CacheEntry::Index));
00044     this->kids = NEW_CONSTR(CacheEntry::Indices, (ifs));
00045     this->refs = NEW_CONSTR(Derived::Indices, (ifs));
00046 }
00047 

Generated on Mon May 8 00:48:59 2006 for Vesta by  doxygen 1.4.2