88 return console_width_;
91 friend struct ConsoleWidthTest;
95 int console_width_ = std::numeric_limits<int>::max();
Definition: ConsoleUtils.h:52
static String breakString(const String &input, const Size indentation, const Size max_lines, const Size first_line_prefill=0)
same as breakStringList(), but concatenates the result using ' ' for convenience
void operator=(ConsoleUtils const &)=delete
Assignment operator (deleted)
static StringList breakStringList(const String &input, const Size indentation, const Size max_lines, const Size first_line_prefill=0)
static const ConsoleUtils & getInstance()
returns the singleton – the only instanciation of this class
StringList breakString_(const String &input, const Size indentation, const Size max_lines, Size first_line_prefill) const
returns a console friendly version of input
int getConsoleWidth() const
width of the console (or INTMAX on internal error)
Definition: ConsoleUtils.h:86
ConsoleUtils()
C'tor (private) – use ConsoleUtils::getInstance()
ConsoleUtils(const ConsoleUtils &)=delete
Copy C'tor (deleted)
int readConsoleSize_()
read console settings for output shaping
A more convenient string class.
Definition: String.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48