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

RootTbl.H

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  4 10:22:25 PST 1997 by heydon
00020 
00021 // Last modified on Mon Aug  9 17:07:37 EDT 2004 by ken@xorian.net
00022 //      modified on Fri Apr  9 16:10:10 PDT 1999 by heydon
00023 
00024 // RootTbl.H -- defines a table type for storing a set of weeder roots
00025 
00026 #ifndef _ROOT_TBL_H
00027 #define _ROOT_TBL_H
00028 
00029 #include <Basics.H>
00030 #include <Table.H>
00031 #include "PkgBuild.H"
00032 
00033 // A "RootTbl" is a collection (set) of "PkgBuild" objects; the
00034 // range of the table is used in a few cases.
00035 
00036 typedef Table<PkgBuild,bool>::Default PkgBuildTbl;
00037 
00038 class RootTbl: public PkgBuildTbl {
00039   public:
00040     RootTbl(int sizeHint = 0, bool useGC = false) throw ()
00041         : PkgBuildTbl(sizeHint, useGC) {}
00042     RootTbl(std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
00043         { this->Read(ifs); }
00044 
00045     void Write(std::ostream &ofs) const throw (FS::Failure);
00046     void Read(std::istream &ifs) throw (FS::EndOfFile, FS::Failure);
00047 
00048     void Print(std::ostream &os, int indent=0,
00049                const Text &tstatus = "", const Text &fstatus = "") const
00050       throw ();
00051 };
00052 
00053 #endif // _ROOT_TBL_H

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