![]() |
Cadabra
Computer algebra system for field theory problems
|
Python output catching.
We implement this in a C++ class because we want to be able to catch each line of output separately, and perhaps add additional functionality to send out-of-band messages to the client later.
#include <Server.hh>
Public Member Functions | |
| CatchOutput () | |
| CatchOutput (const CatchOutput &) | |
| void | write (const std::string &txt) |
| void | clear () |
| std::string | str () const |
Private Attributes | |
| std::string | collect |
| Server::CatchOutput::CatchOutput | ( | ) |
| Server::CatchOutput::CatchOutput | ( | const CatchOutput & | ) |
| void Server::CatchOutput::clear | ( | ) |
| std::string Server::CatchOutput::str | ( | ) | const |
| void Server::CatchOutput::write | ( | const std::string & | txt | ) |
|
private |
1.8.6