Frobby 0.10.0
Loading...
Searching...
No Matches
display.h File Reference

Go to the source code of this file.

Functions

void display (const string &msg, const string &prepend="")
void displayNote (const string &msg)
void displayError (const string &msg)
void displayInternalError (const string &errorMsg)
void displayException (const std::exception &exception)

Detailed Description

This file contains functions for printing strings to standard error. They all perform automatic line breaking suitable for printing to a console.

Function Documentation

◆ display()

void display ( const string & msg,
const string & prepend = "" )

Display msg to standard error with automatic line breaking. If a automatically broken line begins with whitespace, that whitespace is repeated in front of every line that is generated from breaking it.

Parameters
prependPrint this in front of every line that is printed.

◆ displayError()

void displayError ( const string & msg)

Display msg to standard error in a way that indicates that it is an error.

◆ displayException()

void displayException ( const std::exception & exception)

Display the message of exception.

◆ displayInternalError()

void displayInternalError ( const string & errorMsg)

Display msg to standard in a way that indicates that it is an internal error.

◆ displayNote()

void displayNote ( const string & msg)

Display msg to standard error in a way that indicates that this is something that the user should take note of but that is not an error.