Cadabra
Computer algebra system for field theory problems
Public Member Functions | Private Attributes | List of all members
Server::CatchOutput Class Reference

Description

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
 

Constructor & Destructor Documentation

◆ CatchOutput() [1/2]

Server::CatchOutput::CatchOutput ( )

◆ CatchOutput() [2/2]

Server::CatchOutput::CatchOutput ( const CatchOutput )

Member Function Documentation

◆ clear()

void Server::CatchOutput::clear ( )

◆ str()

std::string Server::CatchOutput::str ( ) const

◆ write()

void Server::CatchOutput::write ( const std::string &  txt)

Member Data Documentation

◆ collect

std::string Server::CatchOutput::collect
private

The documentation for this class was generated from the following files: