12 #ifndef G3D_TextOutput_h
13 #define G3D_TextOutput_h
109 allowWordWrapInsideDoubleQuotes(
false),
112 convertNewlines(
true),
114 falseSymbol(
"false") {
191 void commit(
bool flush =
true);
233 const std::string& a,
234 const std::string& b =
"",
235 const std::string& c =
"",
236 const std::string& d =
"",
237 const std::string& e =
"",
238 const std::string& f =
"");
242 void __cdecl
printf(
const char*
fmt, ...)
243 G3D_CHECK_PRINTF_METHOD_ARGS;
248 G3D_CHECK_VPRINTF_METHOD_ARGS;
std::string newline
Definition: TextOutput.h:157
bool allowWordWrapInsideDoubleQuotes
Definition: TextOutput.h:82
NewlineStyle
Definition: TextOutput.h:93
bool inDQuote
Definition: TextOutput.h:139
NewlineStyle newlineStyle
Definition: TextOutput.h:95
Definition: TextOutput.h:63
int m_currentLine
Definition: TextOutput.h:160
void setOptions(const Settings &_opt)
Definition: TextOutput.cpp:56
void popIndent()
Definition: TextOutput.cpp:72
void pushIndent()
Definition: TextOutput.cpp:67
Definition: TextOutput.h:93
#define false
Definition: CascPort.h:18
void commit(bool flush=true)
Definition: TextOutput.cpp:419
bool deleteSpace()
Definition: TextOutput.cpp:182
Settings option
Definition: TextOutput.h:146
void writeSymbol(const std::string &string)
Definition: TextOutput.cpp:139
#define true
Definition: CascPort.h:17
void writeNewlines(int numLines)
Definition: TextOutput.cpp:225
int spacesPerIndent
Definition: TextOutput.h:88
TextOutput(const std::string &filename, const Settings &options=Settings())
Definition: TextOutput.cpp:31
WordWrapMode
Definition: TextOutput.h:75
WordWrapMode wordWrap
Definition: TextOutput.h:78
void serialize(const std::string &s, BinaryOutput &b)
Definition: serialize.h:12
int numColumns
Definition: TextOutput.h:85
void writeSymbols(const std::string &a, const std::string &b="", const std::string &c="", const std::string &d="", const std::string &e="", const std::string &f="")
Definition: TextOutput.cpp:149
int indentSpaces
Definition: TextOutput.h:154
int line() const
Definition: TextOutput.h:182
void __cdecl vprintf(const char *fmt, va_list argPtr) G3D_CHECK_VPRINTF_METHOD_ARGS
Definition: TextOutput.cpp:410
std::string trueSymbol
Definition: TextOutput.h:102
int indentLevel
Definition: TextOutput.h:149
Definition: TextOutput.h:93
void writeString(const std::string &string)
Definition: TextOutput.cpp:112
Definition: TextOutput.h:60
void writeNewline()
Definition: TextOutput.cpp:218
void setIndentLevel(int i)
Definition: TextOutput.cpp:44
Definition: TextOutput.h:75
std::string filename
Definition: TextOutput.h:142
bool startingNewLine
Definition: TextOutput.h:133
void writeNumber(double n)
Definition: TextOutput.cpp:129
uint8_t uint8
Definition: g3dmath.h:164
Settings()
Definition: TextOutput.h:107
Array< char > data
Definition: TextOutput.h:144
void indentAppend(char c)
Definition: TextOutput.cpp:380
std::string falseSymbol
Definition: TextOutput.h:105
void wordWrapIndentAppend(const std::string &str)
Definition: TextOutput.cpp:232
Definition: TextOutput.h:75
std::string commitString()
Definition: TextOutput.cpp:443
void __cdecl printf(const char *fmt,...) G3D_CHECK_PRINTF_METHOD_ARGS
Definition: TextOutput.cpp:174
bool convertNewlines
Definition: TextOutput.h:99
void writeBoolean(bool b)
Definition: TextOutput.cpp:125
#define const
Definition: zconf.h:217
Definition: TextOutput.h:75
void convertNewlines(const std::string &in, std::string &out)
Definition: TextOutput.cpp:193
int currentColumn
Definition: TextOutput.h:136