TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::TextOutput::Settings Class Reference

#include <TextOutput.h>

Public Types

enum  WordWrapMode { WRAP_NONE, WRAP_WITHOUT_BREAKING, WRAP_ALWAYS }
 
enum  NewlineStyle { NEWLINE_WINDOWS, NEWLINE_UNIX }
 

Public Member Functions

 Settings ()
 

Public Attributes

WordWrapMode wordWrap
 
bool allowWordWrapInsideDoubleQuotes
 
int numColumns
 
int spacesPerIndent
 
NewlineStyle newlineStyle
 
bool convertNewlines
 
std::string trueSymbol
 
std::string falseSymbol
 

Member Enumeration Documentation

Style of newline used by word wrapping and by (optional) conversion. default: Windows: NEWLINE_WINDOWS, Linux, OS X: NEWLINE_UNIX.

Enumerator
NEWLINE_WINDOWS 
NEWLINE_UNIX 

WRAP_NONE Word wrapping is disabled WRAP_WITHOUT_BREAKING Word-wrap, but don't break continuous lines that are longer than numColumns (default) WRAP_ALWAYS Wrap even if it means breaking a continuous line or a quoted string.

Word wrapping is only allowed at whitespaces ('\n', '\r', '\t', ' '); it will not occur after commas, punctuation, minus signs, or any other characters

Enumerator
WRAP_NONE 
WRAP_WITHOUT_BREAKING 
WRAP_ALWAYS 

Constructor & Destructor Documentation

G3D::TextOutput::Settings::Settings ( )
inline
107  :
110  numColumns(80),
111  spacesPerIndent(4),
112  convertNewlines(true),
113  trueSymbol("true"),
114  falseSymbol("false") {
115  #ifdef G3D_WINDOWS
117  #else
119  #endif
120  }
bool allowWordWrapInsideDoubleQuotes
Definition: TextOutput.h:82
NewlineStyle newlineStyle
Definition: TextOutput.h:95
Definition: TextOutput.h:93
int spacesPerIndent
Definition: TextOutput.h:88
WordWrapMode wordWrap
Definition: TextOutput.h:78
int numColumns
Definition: TextOutput.h:85
std::string trueSymbol
Definition: TextOutput.h:102
std::string falseSymbol
Definition: TextOutput.h:105
bool convertNewlines
Definition: TextOutput.h:99

Member Data Documentation

bool G3D::TextOutput::Settings::allowWordWrapInsideDoubleQuotes

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

bool G3D::TextOutput::Settings::convertNewlines

If true, all newlines are converted to NewlineStyle regardless of how they start out. Default: true.

std::string G3D::TextOutput::Settings::falseSymbol

Used by writeBoolean

NewlineStyle G3D::TextOutput::Settings::newlineStyle
int G3D::TextOutput::Settings::numColumns

Number of columns for word wrapping. Default: 8

int G3D::TextOutput::Settings::spacesPerIndent

Number of spaces in each indent. Default: 4

std::string G3D::TextOutput::Settings::trueSymbol

Used by writeBoolean

WordWrapMode G3D::TextOutput::Settings::wordWrap

Defaults to WRAP_WITHOUT_BREAKING


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