Creating a SWI-Prolog stream writing to an existing C++ output stream

View: New views
1 Messages — Rating Filter:   Alert me  

Creating a SWI-Prolog stream writing to an existing C++ output stream

by Roberto Bagnara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have an application that is partly written in C++ and partly written
in SWI-Prolog.  This application can write log files that can be quite
large and on the C++ side I have code to control the creation of the
files (including contents filtering).  The question is:

    is there a simple way (possibly writing some glue code) to create
    a SWI-Prolog stream that corresponds to a given C++ ostream?

All the best,

    Roberto

--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara@...

------------
For further info, please visit http://www.swi-prolog.org/

To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>"
in its body to majordomo@...