// Copyright (c) 1996 David Engberg All rights reserved // $Id: FilePath.h,v 1.5 1998/04/12 22:14:44 geppetto Exp $ #ifndef _FilePath_h #define _FilePath_h #ifdef __GNUG__ #pragma interface #endif #include #include using namespace std; // // Class name : CFilePath // Description : Represents a Unix file path // class CFilePath { public: CFilePath(const string& path); CFilePath(const CFilePath& source); ~CFilePath(); CFilePath& operator=(const CFilePath& source); bool operator==(const CFilePath& other) const; bool Exists() const; bool IsFile() const; bool IsDirectory() const; bool NoUpDirectory() const; bool IsWritable() const; bool IsReadable() const; bool IsExecutable() const; bool ContainsLinks() const; bool MakeDirectory() const; string GetString() const; void SetFromString(const string& path); private: string fPathString; }; #endif