ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Command.hpp
Revision: 705
Committed: 2006-03-18T20:49:26-08:00 (19 years, 3 months ago) by douglas
File size: 868 byte(s)
Log Message:
Should work for FileSystem fairly well...

File Contents

# User Rev Content
1 douglas 688 // Command
2     //
3 douglas 686 // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Command_hpp_
8     #define _Command_hpp_
9    
10     #include <cxx/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <api/locks.hpp>
17 douglas 701 #include <api/path.hpp>
18 douglas 695 #include <ext/queues.hpp>
19 douglas 686
20 douglas 697 #include "Subversion/Client.hpp"
21 douglas 686 #include "Url.hpp"
22    
23 douglas 688 struct Command : public ext::ReferenceCounted {
24 douglas 701 const api::Path root;
25 douglas 705 operator api::Path() const { return root; }
26 douglas 688 protected:
27 douglas 701 Command(const cse::String &root) : root(api::Path(root).GetRealPath()) {}
28 douglas 688 };
29 douglas 686
30     class CommandRunner
31     {
32     protected:
33 douglas 696 const cse::String &sitemap, &base;
34 douglas 695 ext::Queue<Url> &queue;
35 douglas 686 api::ThreadMutex &queueLock;
36 douglas 698 Subversion::Client client;
37 douglas 695 CommandRunner(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock) : sitemap(sitemap), base(base), queue(queue), queueLock(queueLock) {}
38 douglas 686 };
39    
40     #endif//_Command_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id