Json Box  0.6.1
This is a JSON C++ library. It can write and read JSON files with ease and speed.
Public Member Functions | Private Attributes | List of all members
JsonBox::Indenter Class Reference

#include <Indenter.h>

Public Member Functions

 Indenter ()
 
std::streambuf::int_type operator() (std::streambuf &destination, std::streambuf::int_type character)
 

Private Attributes

bool atStartOfLine
 Used to indicate if we are at the start of a new line. More...
 

Detailed Description

Adds a level of indentation to a streambuf.

See also
JsonBox::OutputFilter

Constructor & Destructor Documentation

JsonBox::Indenter::Indenter ( )

Default constructor.

Member Function Documentation

std::streambuf::int_type JsonBox::Indenter::operator() ( std::streambuf &  destination,
std::streambuf::int_type  character 
)

Inserts a tab character at the start of each line.

Parameters
destinationStreambuf in which to insert the tab character.
characterCharacter to insert in the streambuf.
Returns
Unspecified value not equal to traits::eof() on success, traits::eof() on failure.

Member Data Documentation

bool JsonBox::Indenter::atStartOfLine
private

Used to indicate if we are at the start of a new line.


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