61 std::stringstream str_data;
70 if (result.size() == 1)
72 current_column_pos_ += result.back().size();
76 current_column_pos_ = result.back().size();
81 *stream_ << result[0];
82 for (
size_t i = 1; i < result.size(); ++i)
85 *stream_ << result[i];
92 typedef std::ostream& (*StreamManipulator)(std::ostream&);
Color and style the fonts shown on cout/cerr (or other streams)
Definition: Colorizer.h:71
static StringList breakStringList(const String &input, const Size indentation, const Size max_lines, const Size first_line_prefill=0)
Class for writing data which spans multiple lines with an indentation for each line (all except the f...
Definition: IndentedStream.h:34
std::ostream * stream_
the underlying stream to print to
Definition: IndentedStream.h:102
IndentedStream & operator<<(Colorizer &colorizer)
IndentedStream & operator<<(IndentedStream &self)
Support calling our member functions within a stream.
~IndentedStream()
D'tor flushes the stream.
UInt max_lines_
maximum number of lines a single item is split into before excess lines are replaced by '....
Definition: IndentedStream.h:104
IndentedStream(std::ostream &stream, const UInt indentation, const UInt max_lines)
C'tor.
IndentedStream & operator<<(StreamManipulator manip)
Overload for function pointers, e.g. std::endl.
IndentedStream & indent(const UInt new_indent)
UInt indentation_
number of spaces in prefix of each line
Definition: IndentedStream.h:103
IndentedStream & operator<<(const T &data)
Definition: IndentedStream.h:58
UInt max_line_width_
width of console/output
Definition: IndentedStream.h:105
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19