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

Comparing Bender/Bender.cpp (file contents):
Revision 110 by Douglas Thrift, 2004-03-15T21:58:29-08:00 vs.
Revision 112 by Douglas Thrift, 2004-03-16T00:28:49-08:00

# Line 22 | Line 22 | int main(int argc, char* argv[])
22  
23   Bender::Bender()
24   {
25 <        //
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines