LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::dumper::IndentOptions_t Struct Reference

Structure collecting indentation options. More...

#include "NewLine.h"

Public Member Functions

 IndentOptions_t (std::string ind="", bool followLine=false)
 
IndentOptions_tappendIndentation (std::string more)
 
IndentOptions_tremoveIndentation (std::string less)
 

Public Attributes

std::string indent
 indentation string More...
 
bool appendFirst = false
 skip indentation on the first line More...
 

Detailed Description

Structure collecting indentation options.

Definition at line 19 of file NewLine.h.

Constructor & Destructor Documentation

recob::dumper::IndentOptions_t::IndentOptions_t ( std::string  ind = "",
bool  followLine = false 
)
inline

Definition at line 23 of file NewLine.h.

24  : indent(ind), appendFirst(followLine)
25  {}
std::string indent
indentation string
Definition: NewLine.h:20
bool appendFirst
skip indentation on the first line
Definition: NewLine.h:21

Member Function Documentation

IndentOptions_t& recob::dumper::IndentOptions_t::appendIndentation ( std::string  more)
inline

Definition at line 27 of file NewLine.h.

28  {
29  indent += more;
30  appendFirst = false;
31  return *this;
32  }
std::string indent
indentation string
Definition: NewLine.h:20
bool appendFirst
skip indentation on the first line
Definition: NewLine.h:21
IndentOptions_t& recob::dumper::IndentOptions_t::removeIndentation ( std::string  less)
inline

Definition at line 33 of file NewLine.h.

34  {
35  indent.erase(std::max(indent.length() - less.length(), size_t(0)));
36  return *this;
37  }
std::string indent
indentation string
Definition: NewLine.h:20

Member Data Documentation

bool recob::dumper::IndentOptions_t::appendFirst = false

skip indentation on the first line

Definition at line 21 of file NewLine.h.

std::string recob::dumper::IndentOptions_t::indent

indentation string

Definition at line 20 of file NewLine.h.

Referenced by recob::dumper::makeNewLine(), and recob::dumper::NewLine< Stream >::NewLine().


The documentation for this struct was generated from the following file: