1 |
douglas |
688 |
// File System |
2 |
|
|
// |
3 |
douglas |
686 |
// 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 |
douglas |
688 |
FileSystemCommand(const cse::String &root) : Command(root) {} |
21 |
douglas |
686 |
}; |
22 |
|
|
|
23 |
douglas |
688 |
class FileSystem : public CommandRunner |
24 |
douglas |
686 |
{ |
25 |
douglas |
713 |
void Directory(const api::Path &directory, const cse::String &base, bool root = false); |
26 |
douglas |
705 |
void File(const api::Path &directory, const cse::String &base, const Subversion::Entry &entry); |
27 |
douglas |
688 |
public: |
28 |
douglas |
695 |
FileSystem(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock, const _R<FileSystemCommand> &command); |
29 |
douglas |
686 |
}; |
30 |
|
|
|
31 |
|
|
#endif//_FileSystem_hpp_ |