Tracer
v0.0.1
A platform independant stack trace generator
|
Wrapper for both FilePrinter and SystemInfoPrinter. More...
#include <FancyPrinter.hpp>
Additional Inherited Members | |
Public Member Functions inherited from tracer::FilePrinter | |
fs::path | findFile (std::string file) |
Searches a file. More... | |
void | setFilePrinterConfig (FileConfig d) |
Sets the new configuration. | |
FileConfig | getFilePrinterConfig () |
Returns the current configuration. | |
Public Member Functions inherited from tracer::DefaultPrinter | |
void | setConfig (Config newCfg) |
Sets the new config. | |
Config | getConfig () const |
Returns the current. | |
Public Member Functions inherited from tracer::AbstractPrinter | |
AbstractPrinter () | |
Default constructor. | |
std::string | genStringPreFrame (size_t frameNum) |
Generates a string for the frame information (prefix) More... | |
std::string | genStringForFrame (size_t frameNum) |
Generates a string for the frame information. More... | |
std::string | genStringPostFrame (size_t frameNum) |
Generates a string for the frame information (suffix) More... | |
std::string | generateString () |
Generates a string for the complete stack trace. More... | |
void | printToFile (std::string file, bool append=true) |
Prints the stack trace to a file. More... | |
void | printToStdOut () |
prints the stack trace to STDOUT | |
void | printToStdErr () |
prints the stack trace to STDERR | |
void | enableColor () |
Enables colored output (ANSI escape sequences) | |
void | disableColor () |
Disables colored output (ANSI escape sequences) | |
void | setTrace (Tracer *t) |
Sets the trace to print. More... | |
Public Member Functions inherited from tracer::SystemInfoPrinter | |
void | setSignum (int sNum) |
Sets the signal number to display. | |
void | addSystemEntry (InfoEntry e) |
Adds a new entry to print. | |
std::string | getOSString () |
Returns a string with the name and version of the current OS. | |
Static Public Member Functions inherited from tracer::SystemInfoPrinter | |
static std::string | sigNum2Str (int sNum) |
Converts a signal number to a string. More... | |
Protected Member Functions inherited from tracer::FilePrinter | |
std::string | genStringPostFrameIMPL (size_t frameNum) override |
Generate string for the frame info suffix. More... | |
Protected Member Functions inherited from tracer::DefaultPrinter | |
std::string | genStringForFrameIMPL (size_t frameNum) override |
Generate string for the frame info. | |
void | setupTrace () override |
This function will be called when the trace is sets. | |
Protected Member Functions inherited from tracer::SystemInfoPrinter | |
std::string | genStringPreFrameIMPL (size_t frameNum) override |
Generate string for the frame info prefix. More... | |
Protected Attributes inherited from tracer::AbstractPrinter | |
Tracer * | trace = nullptr |
Pointer to the trace. | |
bool | disableColorB = false |
Whether to disable colored output or not. | |
Wrapper for both FilePrinter and SystemInfoPrinter.
Definition at line 39 of file FancyPrinter.hpp.