ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Bender/Bender.cpp
Revision: 112
Committed: 2004-03-16T00:28:49-08:00 (21 years, 3 months ago) by Douglas Thrift
File size: 663 byte(s)
Log Message:
Blah!

File Contents

# Content
1 // Bender
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #include "Bender.hpp"
8
9 int main(int argc, char* argv[])
10 {
11 XMLPlatformUtils::Initialize();
12 XalanTransformer::initialize();
13
14 Bender bender;
15
16 XalanTransformer::terminate();
17 XMLPlatformUtils::Terminate();
18 XalanTransformer::ICUCleanUp();
19
20 return 0;
21 }
22
23 Bender::Bender()
24 {
25 string path = sgetenv("PATH_TRANSLATED");
26
27 if (path != "")
28 {
29 cout << "Content-Type: text/html\n\n";
30
31 XalanTransformer transformer;
32
33 if (transformer.transform(path.c_str(), cout) != 0)
34 {
35 ifstream fin(path.c_str());
36 string line;
37
38 do
39 {
40 getline(fin, line);
41
42 cout << line << "\n";
43 }
44 while (fin.good());
45 }
46 }
47 }

Properties

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