class Core::Text::TextWriter

#include <coretexthelper.h>

class TextWriter
{
public:
    // construction

    TextWriter(IO::Stream* stream);

    // methods

    bool flush();
    bool writeChar(char c);
    bool writeString(CStringPtr text, bool newline = false);
    bool writeLine(CStringPtr text);
    bool writeIndent();
    bool writeNewline();
    void incIndent();
    void decIndent();
    int currentIndent() const;
    void setSuppressWhitespace(bool state);
};

// direct descendants

class Writer;