ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Zoe.hpp
Revision: 61
Committed: 2004-09-15T19:52:33-07:00 (20 years, 9 months ago) by douglas
File size: 1727 byte(s)
Log Message:
Took out #include <iostream> and using std::cerr stuff.

File Contents

# Content
1 // Zoe AIM Away Message RSS Feed Generator
2 //
3 // Seth King and Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _Zoe_hpp_
8 #define _Zoe_hpp_
9
10 #include <menes/platform.hpp>
11
12 #include <map>
13 #include <set>
14 #include <vector>
15
16 #include <menes-api/console.hpp>
17 #include <menes-api/files.hpp>
18 #include <menes-app/entrypoint.hpp>
19 #include <menes-dbi/driver.hpp>
20 #include <menes-dbi/connection.hpp>
21 #include <menes-dbi/resultset.hpp>
22 #include <menes-etl/fnbind.hpp>
23 #include <menes-ext/casts.hpp>
24 #include <menes-ext/string.hpp>
25 #include <menes-net/oscar/session.hpp>
26 #include <menes-net/oscar/tools/auth.hpp>
27 #include <menes-net/oscar/tools/buddy.hpp>
28 #include <menes-net/oscar/tools/chat.hpp>
29 #include <menes-net/oscar/tools/icbm.hpp>
30 #include <menes-net/oscar/tools/info.hpp>
31 #include <menes-xml/document.hpp>
32 #include <menes-xml/nodeset.hpp>
33 #include <menes-xml/parse.hpp>
34 #include <menes-xml/textwriter.hpp>
35
36 struct Database { ext::String driver, host, user, password, db; };
37
38 #include "Buddy.hpp"
39
40 class Zoe
41 {
42 private:
43 ext::String login, password;
44 Database database;
45 std::set<Buddy> buddies;
46 void configure();
47 void initialize();
48 public:
49 Zoe();
50 enum Generator { all, agent, url, version };
51 static bool debug, collector, publisher, color;
52 static ext::String program, config;
53 static void usage();
54 static ext::String generator(Generator generator = all);
55 };
56
57 enum Color { reset, bright, dim, underscore = 4, blink, reverse = 7, hidden,
58 black = 30, red, green, yellow, blue, magenta, cyan, white,
59 _black = 40, _red, _green, _yellow, _blue, _magenta, _cyan, _white };
60
61 inline ios::PrintWriter& operator<<(ios::PrintWriter& pout, Color color)
62 {
63 return Zoe::color ? pout << "\033[" << unsigned(color) << "m" : pout;
64 }
65
66 #endif // _Zoe_hpp_

Properties

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