OKlibrary  0.2.1.6
OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc > Class Template Reference

Filter for iostreams indenting each line. More...

#include <IOStreamFilters.hpp>

Inheritance diagram for OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >:
basic_line_filter

List of all members.

Public Types

typedef Ch char_type
typedef base_type::string_type string_type
typedef unsigned long int size_type

Public Member Functions

 BasicIndentLines (const unsigned long int indentation=0, const char_type ch= ' ')
size_type indentation () const
size_typeindentation ()
char_type character () const
char_typecharacter ()

Detailed Description

template<typename Ch, typename Alloc = std::allocator<Ch>>
class OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >

Filter for iostreams indenting each line.

Remark: In order to make sure that the full output reached the underlying sink, flushing of the filter(-stream) is necessary.

Definition at line 106 of file IOStreamFilters.hpp.


Member Typedef Documentation

template<typename Ch , typename Alloc = std::allocator<Ch>>
typedef Ch OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::char_type

Definition at line 109 of file IOStreamFilters.hpp.

template<typename Ch , typename Alloc = std::allocator<Ch>>
typedef unsigned long int OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::size_type

Definition at line 111 of file IOStreamFilters.hpp.

template<typename Ch , typename Alloc = std::allocator<Ch>>
typedef base_type::string_type OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::string_type

Definition at line 110 of file IOStreamFilters.hpp.


Constructor & Destructor Documentation

template<typename Ch , typename Alloc = std::allocator<Ch>>
OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::BasicIndentLines ( const unsigned long int  indentation = 0,
const char_type  ch = ' ' 
) [inline, explicit]

Definition at line 116 of file IOStreamFilters.hpp.


Member Function Documentation

template<typename Ch , typename Alloc = std::allocator<Ch>>
char_type OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::character ( ) const [inline]

Definition at line 119 of file IOStreamFilters.hpp.

template<typename Ch , typename Alloc = std::allocator<Ch>>
char_type& OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::character ( ) [inline]

Definition at line 120 of file IOStreamFilters.hpp.

template<typename Ch , typename Alloc = std::allocator<Ch>>
size_type OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::indentation ( ) const [inline]

Definition at line 117 of file IOStreamFilters.hpp.

template<typename Ch , typename Alloc = std::allocator<Ch>>
size_type& OKlib::GeneralInputOutput::BasicIndentLines< Ch, Alloc >::indentation ( ) [inline]

Definition at line 118 of file IOStreamFilters.hpp.


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