All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
StreamIndenter.h File Reference

Utility to have simple indentation in a stream. More...

#include <utility>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  util::addIndent
 Stream modifier that makes it "indented". More...
 
class  util::details::IndentAdder< Stream >
 Stream wapper. More...
 

Namespaces

 util
 Namespace for general, non-LArSoft-specific utilities.
 
 util::details
 

Functions

template<typename Stream >
auto util::operator<< (Stream &&out, addIndent &&adder)
 Helper function for addIndent (. More...
 
template<typename Stream >
auto util::makeIndented (Stream &&out, std::string indent, std::string firstIndent)
 Creates an indented stream wrapper. More...
 
template<typename Stream >
auto util::makeIndented (Stream &&out, std::string const &indent)
 

Detailed Description

Utility to have simple indentation in a stream.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
March 22, 2022

This is a header-only library.

Definition in file StreamIndenter.h.