8 #ifndef LARDATA_RECOBASE_DUMPERS_NEWLINE_H
9 #define LARDATA_RECOBASE_DUMPERS_NEWLINE_H 1
32 indent.erase(std::max(
indent.length() - less.length(), size_t(0)));
73 template <
typename Stream>
144 template <
typename Stream>
150 template <
typename Stream>
160 #endif // LARDATA_RECOBASE_DUMPERS_NEWLINE_H
unsigned int nLines
number of lines in output
unsigned int lines() const
Returns the number of inserted lines.
Starts a new line in a output stream.
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
void addIndent(std::string moreIndent)
Adds to the end to the indentation string.
IndentOptions_t(std::string ind="", bool followLine=false)
Stream & operator()()
Calls and returns newLine(). Candy.
std::string indent() const
Returns the current indentation string.
std::string indent
indentation string
IndentOptions_t & appendIndentation(std::string more)
void setIndent(std::string newIndent)
Replaces the indentation string.
NewLine(Stream &stream, std::string indent="", bool followLine=false)
Constructor: associates with the stream.
IndentOptions_t & removeIndentation(std::string less)
Stream & out
reference to the output stream
bool appendFirst
skip indentation on the first line
NewLine(Stream &stream, IndentOptions_t indentOptions)
Constructor: associates with the stream.
Structure collecting indentation options.
void forceNewLine()
Starts a new line (no matter what)
Stream & newLine()
Starts a new line.
bool append() const
Returns whether newLine() will append text on the current line.
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker options
NewLine< Stream > makeNewLine(Stream &stream, std::string indent, bool followLine=false)
Convenience function to create a temporary NewLine.
IndentOptions_t options
all indentation options