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

Pathname.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 Wed Mar 12 15:56:34 PST 1997 by heydon
00020 
00021 // Last modified on Mon Aug  9 17:05:31 EDT 2004 by ken@xorian.net
00022 //      modified on Thu Mar 13 21:55:10 PST 1997 by heydon
00023 
00024 // Pathname.H -- defines space-efficient storage of a collection
00025 //   of pathnames with common prefixes.
00026 
00027 #ifndef _PATHNAME_H
00028 #define _PATHNAME_H
00029 
00030 #include <Basics.H>
00031 
00032 /* The methods of this interface are unmonitored. */
00033 
00034 class Pathname {
00035   public:
00036     // a Pathname::T is an index into a private table
00037     typedef int T;
00038 
00039     static T New(T prefix, const char *arc) throw ();
00040     /* Return a new pathname consisting of the concatenation of the pathname
00041        represented by "prefix" and the text "arc". If this is the first arc
00042        of a pathname, "prefix" should be negative. In general, "arc" should
00043        not contain any slashes, except in the case where "prefix" is negative
00044        and "arc" begins with a slash to denote the start of an absolute
00045        pathname. */
00046 
00047     static void Print(std::ostream &os, T path) throw ();
00048     /* Print the pathname "path" to the output stream "os". */
00049 };
00050 
00051 #endif // _PATHNAME_H

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