On Thursday 18 October 2001 11:20, Andre Poenitz wrote: > On Thu, Oct 18, 2001 at 11:18:03AM +0100, Angus Leeming wrote: > > > I need it for the math-extern stuff, so asnchronous operation is not > > > wanted... > > > > No, I don't see that. What I envisage is that the converter class writes a > > shell script containing the conversion calls. How that shell script is then > > invoked is up to you. > > I don't want to handle shellscripts in mathed. > > I want to be able to say "filter content of string x trough external comman > y and give me back its output as a string" in one line without caring for > any detail of its implementation. > > Alternately, I want to write > > vector<string> cmd; > cmd.push_back("external_command"); > cmd.push_back("-possibly"); > cmd.push_back("with aruments"); > x_stream ps(cmd); > string in = "hallo"; > string out; > ps << in; > ps >> out; > > > > string const script_file = "converter.sh"; > > shellstream script(script_file); > > converters.buildScript(script, "image.eps", "/tmp/lyx_xyz", "EPS", "XPM"); > > converters.runSynchronous(script); > > Ok... this is close enough.
No doubt I'll get less woolly about all this as I learn. Remember, I knew no C++ at all when I started with LyX and that was only two years ago. I still use fortran a LOT ;-)