ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/Jargon.cpp
Revision: 223
Committed: 2004-09-06T01:58:43-07:00 (20 years, 9 months ago) by Douglas Thrift
File size: 524 byte(s)
Log Message:
Moved most of the output stuff to XSL/T.

File Contents

# User Rev Content
1 Douglas Thrift 196 // Feeping Creaturism
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include "Jargon.hpp"
8    
9 Douglas Thrift 223 Jargon::Jargon(const ext::String& path, bool include)
10 Douglas Thrift 196 {
11 Douglas Thrift 201 std::vector<std::string> args(1, FeepingCreaturism::program);
12 Douglas Thrift 196
13 Douglas Thrift 223 args.push_back("-p");
14     args.push_back("include");
15     args.push_back(lexical_cast<ext::String>(include) + "()");
16 Douglas Thrift 196 args.push_back(path);
17 Douglas Thrift 201 args.push_back("jargon.xsl");
18 Douglas Thrift 196
19 Douglas Thrift 223 redi::ipstream pin("/usr/local/bin/Xalan", args);
20 Douglas Thrift 196
21 Douglas Thrift 223 do
22 Douglas Thrift 208 {
23 Douglas Thrift 223 std::string line;
24 Douglas Thrift 208
25 Douglas Thrift 223 std::getline(pin, line);
26 Douglas Thrift 208
27 Douglas Thrift 223 buffer << line << '\n';
28 Douglas Thrift 203 }
29 Douglas Thrift 223 while (pin.good());
30 Douglas Thrift 196 }

Properties

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