1 |
// File System |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _FileSystem_hpp_ |
8 |
#define _FileSystem_hpp_ |
9 |
|
10 |
#include <cxx/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include "Command.hpp" |
17 |
|
18 |
struct FileSystemCommand : public Command |
19 |
{ |
20 |
FileSystemCommand(const cse::String &root) : Command(root) {} |
21 |
}; |
22 |
|
23 |
class FileSystem : public CommandRunner |
24 |
{ |
25 |
void Directory(const api::Path &directory, const cse::String &base, bool root = false); |
26 |
void File(const api::Path &directory, const cse::String &base, const Subversion::Entry &entry); |
27 |
public: |
28 |
FileSystem(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock, const _R<FileSystemCommand> &command); |
29 |
}; |
30 |
|
31 |
#endif//_FileSystem_hpp_ |