Tracer
v0.0.1
A platform independant stack trace generator
|
A container for printers (like std::unique_ptr) More...
#include <PrinterContainer.hpp>
Public Member Functions | |
PrinterContainer (AbstractPrinter *p) | |
Constructor sets the printer. More... | |
PrinterContainer (const PrinterContainer &)=delete | |
PrinterContainer (PrinterContainer &&moveFrom) | |
Move constructor. More... | |
PrinterContainer & | operator= (const PrinterContainer &)=delete |
PrinterContainer & | operator= (PrinterContainer &&) |
Move assignment operator. More... | |
AbstractPrinter * | get () |
Returns the printer. More... | |
AbstractPrinter * | operator() () |
Returns the printer. More... | |
AbstractPrinter * | operator-> () |
Access the printer. More... | |
Static Public Member Functions | |
static PrinterContainer | fancy () |
Returns a container with a tracer::FancyPrinter object. More... | |
static PrinterContainer | file () |
Returns a container with a tracer::FilePrinter object. More... | |
static PrinterContainer | system () |
Returns a container with a tracer::SystemInfoPrinter object. More... | |
static PrinterContainer | plain () |
Returns a container with a tracer::DefaultPrinter object. More... | |
A container for printers (like std::unique_ptr)
Automatically deletes the printer in the destructor
Definition at line 40 of file PrinterContainer.hpp.
PrinterContainer::PrinterContainer | ( | AbstractPrinter * | p | ) |
Constructor sets the printer.
p | The printer to store |
Definition at line 39 of file PrinterContainer.cpp.
PrinterContainer::PrinterContainer | ( | PrinterContainer && | moveFrom | ) |
Move constructor.
moveFrom | object to move from |
Definition at line 49 of file PrinterContainer.cpp.
|
static |
Returns a container with a tracer::FancyPrinter object.
Definition at line 70 of file PrinterContainer.cpp.
|
static |
Returns a container with a tracer::FilePrinter object.
Definition at line 76 of file PrinterContainer.cpp.
AbstractPrinter * PrinterContainer::get | ( | ) |
Returns the printer.
Definition at line 90 of file PrinterContainer.cpp.
AbstractPrinter * PrinterContainer::operator() | ( | ) |
AbstractPrinter * PrinterContainer::operator-> | ( | ) |
PrinterContainer & PrinterContainer::operator= | ( | PrinterContainer && | moveFrom | ) |
Move assignment operator.
moveFrom | Object to move from |
Definition at line 58 of file PrinterContainer.cpp.
|
static |
Returns a container with a tracer::DefaultPrinter object.
Definition at line 88 of file PrinterContainer.cpp.
|
static |
Returns a container with a tracer::SystemInfoPrinter object.
Definition at line 82 of file PrinterContainer.cpp.