ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Command.hpp
Revision: 698
Committed: 2006-03-12T19:28:22-08:00 (19 years, 3 months ago) by douglas
File size: 825 byte(s)
Log Message:
Woo!

File Contents

# Content
1 // Command
2 //
3 // 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 #include <ext/queues.hpp>
18
19 #include "Subversion/Client.hpp"
20 #include "Url.hpp"
21
22 struct Command : public ext::ReferenceCounted {
23 const cse::String root;
24 operator const cse::String &() { return root; }
25 protected:
26 Command(const cse::String &root) : root(root) {}
27 };
28
29 class CommandRunner
30 {
31 protected:
32 const cse::String &sitemap, &base;
33 ext::Queue<Url> &queue;
34 api::ThreadMutex &queueLock;
35 Subversion::Client client;
36 CommandRunner(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock) : sitemap(sitemap), base(base), queue(queue), queueLock(queueLock) {}
37 };
38
39 #endif//_Command_hpp_

Properties

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