#include <scripttokenwriter.h>
Public Member Functions | |
SimpleTokenWriter (TextOutputStream &ostream) | |
~SimpleTokenWriter () | |
void | nextLine () |
void | writeToken (const char *token) |
void | writeString (const char *string) |
void | writeInteger (int i) |
void | writeUnsigned (std::size_t i) |
void | writeFloat (double f) |
Private Member Functions | |
void | writeSeparator () |
Private Attributes | |
TextOutputStream & | m_ostream |
char | m_separator |
Definition at line 27 of file scripttokenwriter.h.
SimpleTokenWriter::SimpleTokenWriter | ( | TextOutputStream & | ostream | ) | [inline] |
Definition at line 29 of file scripttokenwriter.h.
SimpleTokenWriter::~SimpleTokenWriter | ( | ) | [inline] |
Definition at line 32 of file scripttokenwriter.h.
References writeSeparator().
void SimpleTokenWriter::nextLine | ( | ) | [inline, virtual] |
void SimpleTokenWriter::writeFloat | ( | double | f | ) | [inline, virtual] |
Implements TokenWriter.
Definition at line 56 of file scripttokenwriter.h.
References m_ostream, and writeSeparator().
void SimpleTokenWriter::writeInteger | ( | int | i | ) | [inline, virtual] |
Implements TokenWriter.
Definition at line 48 of file scripttokenwriter.h.
References m_ostream, and writeSeparator().
void SimpleTokenWriter::writeSeparator | ( | ) | [inline, private] |
Definition at line 62 of file scripttokenwriter.h.
References m_ostream, and m_separator.
Referenced by writeFloat(), writeInteger(), writeString(), writeToken(), writeUnsigned(), and ~SimpleTokenWriter().
void SimpleTokenWriter::writeString | ( | const char * | string | ) | [inline, virtual] |
Implements TokenWriter.
Definition at line 44 of file scripttokenwriter.h.
References m_ostream, and writeSeparator().
void SimpleTokenWriter::writeToken | ( | const char * | token | ) | [inline, virtual] |
Implements TokenWriter.
Definition at line 39 of file scripttokenwriter.h.
References m_ostream, and writeSeparator().
void SimpleTokenWriter::writeUnsigned | ( | std::size_t | i | ) | [inline, virtual] |
Implements TokenWriter.
Definition at line 52 of file scripttokenwriter.h.
References m_ostream, and writeSeparator().
TextOutputStream& SimpleTokenWriter::m_ostream [private] |
Definition at line 66 of file scripttokenwriter.h.
Referenced by writeFloat(), writeInteger(), writeSeparator(), writeString(), writeToken(), and writeUnsigned().
char SimpleTokenWriter::m_separator [private] |
Definition at line 67 of file scripttokenwriter.h.
Referenced by nextLine(), and writeSeparator().