Ookii.CommandLine for C++  2.0.0
Classes | Namespaces | Typedefs | Functions | Variables
line_wrapping_stream.h File Reference

Provides an output stream buffer, and associated stream, that allow for white-space wrapping text at the specified width. More...

#include <cassert>
#include <vector>
#include "vt_helper.h"
Include dependency graph for line_wrapping_stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ookii::basic_line_wrapping_ostream< CharType, Traits >
 Output stream that wraps lines on white-space characters at the specified line length, and with support for indentation. More...
 
class  ookii::basic_line_wrapping_ostringstream< CharType, Traits, Allocator >
 Output string stream that wraps lines on white-space characters at the specified line length, and with support for indentation. More...
 
class  ookii::basic_line_wrapping_streambuf< CharType, Traits >
 Stream buffer that wraps lines on white-space characters at the specified line length, and with support for indentation. More...
 

Namespaces

 ookii
 Namespace containing the core Ookii.CommandLine.Cpp types.
 

Typedefs

using ookii::line_wrapping_ostream = basic_line_wrapping_ostream< char >
 A line wrapping stream for use with the char type.
 
using ookii::line_wrapping_ostringstream = basic_line_wrapping_ostringstream< char >
 A line wrapping string stream for use with the char type.
 
using ookii::line_wrapping_streambuf = basic_line_wrapping_streambuf< char >
 A line wrapping stream buffer for use with the char type.
 
using ookii::wline_wrapping_ostream = basic_line_wrapping_ostream< wchar_t >
 A line wrapping stream for use with the wchar_t type.
 
using ookii::wline_wrapping_ostringstream = basic_line_wrapping_ostringstream< wchar_t >
 A line wrapping string stream for use with the wchar_t type.
 
using ookii::wline_wrapping_streambuf = basic_line_wrapping_streambuf< wchar_t >
 A line wrapping stream buffer for use with the wchar_t type.
 

Functions

details::flush_helper ookii::flush (bool flush_last_line)
 IO manipulator that flushes a stream using a basic_line_wrapping_streambuf, optionally flushing the last unterminated line. More...
 
template<typename CharType , typename Traits >
std::basic_ostream< CharType, Traits > & ookii::reset_indent (std::basic_ostream< CharType, Traits > &stream)
 IO manipulator that lets the next line start at the beginning of the line, without indenting it. More...
 
details::set_indent_helper ookii::set_indent (size_t indent)
 IO manipulator that changes the number of spaces that each line is indented with for a line wrapping stream. More...
 

Variables

constexpr size_t ookii::use_console_width = std::numeric_limits<size_t>::max()
 Indicates that the basic_line_wrapping_streambuf should use the console width as the line length.
 

Detailed Description

Provides an output stream buffer, and associated stream, that allow for white-space wrapping text at the specified width.