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