ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Blog.cpp
Revision: 716
Committed: 2006-03-28T04:49:27-08:00 (19 years, 3 months ago) by douglas
File size: 909 byte(s)
Log Message:
Checkpoint Charlie!

File Contents

# User Rev Content
1 douglas 688 // Blog
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include <cxx/standard.hh>
8    
9 douglas 716 #include <dbi/connection.hpp>
10     #include <dbi/driver.hpp>
11    
12 douglas 688 #include "Blog.hpp"
13    
14 douglas 713 Blog::Blog(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock, const _R<BlogCommand> &command) : CommandRunner(sitemap, queue, queueLock)
15 douglas 688 {
16     api::Cout << _B("Blog") << ios::NewLine;
17 douglas 716
18     Entries(command->root, _S<ios::String>() << base << command->path);
19 douglas 688 }
20 douglas 716
21     void Blog::Entries(const api::Path &directory, const cse::String &base)
22     {
23     _R<dbi::Driver> driver(dbi::GetDriver(client.GetProperty(_B("GoogleTron:Driver"), directory.GetPath())));
24     _R<dbi::Connection> connection(driver->Connect(client.GetProperty(_B("GoogleTron:Host"), directory.GetPath()), client.GetProperty(_B("GoogleTron:User"), directory.GetPath()), GetPassword(directory), client.GetProperty(_B("GoogleTron:Database"), directory.GetPath())));
25     }

Properties

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