osmanip
Library with useful output stream tools like: color and style manipulators, progress bars and terminal graphics.
Classes | Namespaces | Functions
printer.hpp File Reference
#include "common.hpp"
#include "colsty.hpp"
#include <arsenalgear/stream.hpp>
#include <arsenalgear/utils.hpp>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
Include dependency graph for printer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  osm::OS_Decorator
 Class used to decorate an output stream. Each setting is set permanently on the chosen output stream until the destructor is met or one of the reset functions is called. More...
 

Namespaces

 osm
 

Functions

template<typename... Args>
void osm::print (std::ostream &os=agr::null_stream, const Args &... args)
 It can be used to print messages and strings to the output stream, specifying also the stream you want to use. Different standard colors are set for each output-stream type. If the output stream is not specified std::cout will be used as default. This overload is used for the general case. More...
 
template<typename... Args>
void osm::print (Args &... args)
 It can be used to print messages and strings in the output stream, specifying also the stream you want to use. Different standard colors are set for each output-stream type. If the output stream is not specified std::cout will be used as default. This overload is used for the 0-arguments case. More...
 
template<typename T >
std::ostream & osm::operator<< (OS_Decorator my_shell, const T &elem)
 Operator overload to output a modified ostream object which properties are set thanks to the OS_Decorator class. More...