ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Zoe.cpp
(Generate patch)

Comparing trunk/Zoe.cpp (file contents):
Revision 71 by douglas, 2004-12-16T11:43:53-08:00 vs.
Revision 72 by douglas, 2004-12-19T12:32:53-08:00

# Line 88 | Line 88 | ext::String Zoe::program, Zoe::config("z
88  
89   void Zoe::usage()
90   {
91 <        api::Cerr << "Usage: " << Zoe::program << " [-config=config] [-collector] [-publisher] [-color] [-D]\n";
91 >        api::Cerr << "Usage: " << Zoe::program << " [-config=config] [-collector] [-publisher] [-color] [-D]" << ios::NewLine;
92   }
93  
94   ext::String Zoe::generator(Generator generator)
# Line 130 | Line 130 | ext::String Zoe::generator(Generator gen
130  
131   void Zoe::configure()
132   {
133 <        if (debug) api::Cerr << "config = " << config << "\n";
133 >        if (debug) api::Cerr << "config = " << config << ios::NewLine;
134  
135          ext::Handle<xml::Document> document(xml::Parse(config));
136          ext::Handle<xml::Node> zoe(*document/"zoe");
# Line 196 | Line 196 | void Zoe::configure()
196          }
197  
198          if (debug) api::Cerr << "collector = " << collector << "\npublisher = "
199 <                << publisher << "\ncolor = " << color << "\n";
199 >                << publisher << "\ncolor = " << color << "\n" << ios::Flush;
200   }
201  
202   void Zoe::initialize()
# Line 229 | Line 229 | void Zoe::initialize()
229          {
230                  ext::Uuid id(api::Uuid::CreateSequential());
231  
232 //              api::Uuid::CreateSequential(id);
233
232                  buddy->setId(id);
233                  db->Execute("INSERT INTO buddies (id, buddy) VALUES ('"
234                          + lexical_cast<ext::String>(id) + "', '" + ext::String(*buddy)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines