Thea
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
TextOutputStream::Settings Class Reference

Output configuration optionss. More...

#include <TextOutputStream.hpp>

Public Member Functions

 Settings ()
 Constructs the default settings. More...
 

Static Public Member Functions

static Settings const & defaults ()
 Get the default settings. More...
 

Public Attributes

bool allowWordWrapInsideDoubleQuotes
 Is word-wrapping allowed to insert newlines inside double quotes? Default: false. More...
 
bool convertNewlines
 If true, all newlines are converted to newlineStyle regardless of how they start out. More...
 
std::string falseSymbol
 The symbol used to represent false. More...
 
NewlineStyle newlineStyle
 Style of newline used by word wrapping and by (optionsal) conversion. More...
 
int numColumns
 Number of columns for word wrapping. More...
 
int spacesPerIndent
 Number of spaces in each indent. More...
 
std::string trueSymbol
 The symbol used to represent true. More...
 
WordWrap wordWrap
 Word wrap mode. More...
 

Detailed Description

Output configuration optionss.

Definition at line 95 of file TextOutputStream.hpp.

Constructor & Destructor Documentation

Settings ( )

Constructs the default settings.

Definition at line 36 of file TextOutputStream.cpp.

Member Function Documentation

static Settings const& defaults ( )
static

Get the default settings.

Definition at line 129 of file TextOutputStream.hpp.

Member Data Documentation

bool allowWordWrapInsideDoubleQuotes

Is word-wrapping allowed to insert newlines inside double quotes? Default: false.

Definition at line 102 of file TextOutputStream.hpp.

bool convertNewlines

If true, all newlines are converted to newlineStyle regardless of how they start out.

Default: true.

Definition at line 117 of file TextOutputStream.hpp.

std::string falseSymbol

The symbol used to represent false.

Used by writeBoolean

Definition at line 123 of file TextOutputStream.hpp.

NewlineStyle newlineStyle

Style of newline used by word wrapping and by (optionsal) conversion.

Default: Windows: NewlineStyle::WINDOWS, Linux, OS X: NewlineStyle::UNIX.

Definition at line 114 of file TextOutputStream.hpp.

int numColumns

Number of columns for word wrapping.

Default: 8.

Definition at line 105 of file TextOutputStream.hpp.

int spacesPerIndent

Number of spaces in each indent.

Default: 4.

Definition at line 108 of file TextOutputStream.hpp.

std::string trueSymbol

The symbol used to represent true.

Used by writeBoolean

Definition at line 120 of file TextOutputStream.hpp.

WordWrap wordWrap

Word wrap mode.

Defaults to WordWrap::WITHOUT_BREAKING.

Definition at line 99 of file TextOutputStream.hpp.


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