Pakman
OutputStreamHandler Class Reference

#include <OutputStreamHandler.h>

Public Member Functions

std::ostream & getOutputStream ()
 

Static Public Member Functions

static OutputStreamHandlerinstance ()
 
static void destroy ()
 

Detailed Description

A singleton class providing access to the Pakman output stream.

OutputStreamHandler is a class that returns an instance to the Pakman output stream. By default, the output stream is the standard output. However, this default behaviour can be overriden by specifying an output file using the command-line option --output-file.

Definition at line 15 of file OutputStreamHandler.h.

Member Function Documentation

◆ destroy()

void OutputStreamHandler::destroy ( )
static

Close file if a filename was given.

Definition at line 21 of file OutputStreamHandler.cc.

◆ getOutputStream()

std::ostream & OutputStreamHandler::getOutputStream ( )
Returns
reference to output stream.

Definition at line 31 of file OutputStreamHandler.cc.

◆ instance()

OutputStreamHandler * OutputStreamHandler::instance ( )
static
Returns
singleton instance.

Definition at line 12 of file OutputStreamHandler.cc.


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