2
* Copyright (c) 2002 Robert Collins.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* A copy of the GNU General Public License can be found at
12
* Written by Robert Collins <rbtcollins@hotmail.com>
16
#ifndef _FILESYSTEMCOMPOSITE_H_
17
#define _FILESYSTEMCOMPOSITE_H_
23
class FileSystemVisitor;
26
/* An aggregate representing all the files and folders in a given directory */
27
class FileSystemComposite
30
static FileSystemComposite *CreateFromPath (string const &path);
31
static bool Exists(string const &aPath);
32
virtual ~FileSystemComposite (){}
33
virtual void visit (FileSystemVisitor &) = 0;
34
virtual Path const &path() const = 0;
38
#endif // _FILESYSTEMCOMPOSITE_H_