common::TokenWriter Class Reference
[Tokenizer Module]
#include <Tokenizer.hpp>
List of all members.
Public Member Functions |
| | TokenWriter (tstring *outStr) |
| | TokenWriter (common::Stream *outStream) |
| const tstring & | GetEOL () |
| const tstring & | GetIndent () |
| void | SetEOL (const tstring &s) |
| void | SetIndent (const tstring &s) |
| uint | GetEscapeFlags () |
| void | SetEscapeFlags (uint v) |
| void | RegisterSymbol (tchar ch, bool spaceBefore, bool spaceAfter, int levelDelta) |
| void | RegisterSymbol (const tstring &s, bool spaceBefore, bool spaceAfter, int levelDelta) |
| void | RegisterKeyword (const tstring &s, int levelDelta) |
| uint | GetLevel () |
| void | WriteSpace (tchar ch=_T(' ')) |
| void | WriteSpace (const tstring &s) |
| void | WriteEOL () |
| void | WriteKeyword (const tstring &s) |
| void | WriteIdentifier (const tstring &s) |
| void | WriteSymbol (tchar ch) |
| void | WriteSymbol (const tstring &s) |
| void | WriteString (const tstring &s) |
| void | WriteUint1 (uint1 v, bool hex=false) |
| void | WriteUint2 (uint2 v, bool hex=false) |
| void | WriteUint4 (uint4 v, bool hex=false) |
| void | WriteUint8 (uint8 v, bool hex=false) |
| void | WriteInt1 (int1 v) |
| void | WriteInt2 (int2 v) |
| void | WriteInt4 (int4 v) |
| void | WriteInt8 (int8 v) |
| void | WriteFloat (float v, char Mode= 'g', int Precision=6) |
| void | WriteDouble (double v, char Mode= 'g', int Precision=6) |
| void | WriteNumberString (const tstring &v) |
| void | WriteComment (const tstring &s, bool alwaysMultiline=false) |
Static Public Member Functions |
| static void | Escape (tstring *Out, const tstring &In, uint EscapeFlags) |
| | Escapuje łańcuch zgodnie ze składnią tokenizera.
|
Static Public Attributes |
| static const uint | ESCAPE_EOL = 0x01 |
| | Zamieniać znaki końca wiersza na \r \n na sekwencje ucieczki.
|
| static const uint | ESCAPE_OTHER = 0x02 |
Constructor & Destructor Documentation
| common::TokenWriter::TokenWriter |
( |
tstring * |
outStr |
) |
|
Member Function Documentation
| static void common::TokenWriter::Escape |
( |
tstring * |
Out, |
|
|
const tstring & |
In, |
|
|
uint |
EscapeFlags | |
|
) |
| | [static] |
Escapuje łańcuch zgodnie ze składnią tokenizera.
- Parameters:
-
| EscapeFlags | Używać stałych ESCAPE_EOL, ESCAPE_OTHER. |
| const tstring& common::TokenWriter::GetEOL |
( |
|
) |
[inline] |
| uint common::TokenWriter::GetEscapeFlags |
( |
|
) |
[inline] |
| const tstring& common::TokenWriter::GetIndent |
( |
|
) |
[inline] |
| uint common::TokenWriter::GetLevel |
( |
|
) |
[inline] |
| void common::TokenWriter::RegisterKeyword |
( |
const tstring & |
s, |
|
|
int |
levelDelta | |
|
) |
| | |
| void common::TokenWriter::RegisterSymbol |
( |
const tstring & |
s, |
|
|
bool |
spaceBefore, |
|
|
bool |
spaceAfter, |
|
|
int |
levelDelta | |
|
) |
| | |
| void common::TokenWriter::RegisterSymbol |
( |
tchar |
ch, |
|
|
bool |
spaceBefore, |
|
|
bool |
spaceAfter, |
|
|
int |
levelDelta | |
|
) |
| | |
| void common::TokenWriter::SetEOL |
( |
const tstring & |
s |
) |
[inline] |
| void common::TokenWriter::SetEscapeFlags |
( |
uint |
v |
) |
[inline] |
| void common::TokenWriter::SetIndent |
( |
const tstring & |
s |
) |
[inline] |
| void common::TokenWriter::WriteComment |
( |
const tstring & |
s, |
|
|
bool |
alwaysMultiline = false | |
|
) |
| | |
| void common::TokenWriter::WriteDouble |
( |
double |
v, |
|
|
char |
Mode = 'g', |
|
|
int |
Precision = 6 | |
|
) |
| | |
| void common::TokenWriter::WriteEOL |
( |
|
) |
|
| void common::TokenWriter::WriteFloat |
( |
float |
v, |
|
|
char |
Mode = 'g', |
|
|
int |
Precision = 6 | |
|
) |
| | |
| void common::TokenWriter::WriteIdentifier |
( |
const tstring & |
s |
) |
|
| void common::TokenWriter::WriteInt1 |
( |
int1 |
v |
) |
|
| void common::TokenWriter::WriteInt2 |
( |
int2 |
v |
) |
|
| void common::TokenWriter::WriteInt4 |
( |
int4 |
v |
) |
|
| void common::TokenWriter::WriteInt8 |
( |
int8 |
v |
) |
|
| void common::TokenWriter::WriteKeyword |
( |
const tstring & |
s |
) |
|
| void common::TokenWriter::WriteNumberString |
( |
const tstring & |
v |
) |
|
| void common::TokenWriter::WriteSpace |
( |
const tstring & |
s |
) |
|
| void common::TokenWriter::WriteSpace |
( |
tchar |
ch = _T(' ') |
) |
|
| void common::TokenWriter::WriteString |
( |
const tstring & |
s |
) |
|
| void common::TokenWriter::WriteSymbol |
( |
const tstring & |
s |
) |
|
| void common::TokenWriter::WriteSymbol |
( |
tchar |
ch |
) |
|
| void common::TokenWriter::WriteUint1 |
( |
uint1 |
v, |
|
|
bool |
hex = false | |
|
) |
| | |
| void common::TokenWriter::WriteUint2 |
( |
uint2 |
v, |
|
|
bool |
hex = false | |
|
) |
| | |
| void common::TokenWriter::WriteUint4 |
( |
uint4 |
v, |
|
|
bool |
hex = false | |
|
) |
| | |
| void common::TokenWriter::WriteUint8 |
( |
uint8 |
v, |
|
|
bool |
hex = false | |
|
) |
| | |
Member Data Documentation
Zamieniać znaki końca wiersza na \r \n na sekwencje ucieczki.
Zamieniać znaki niedostęne z klawiatury (w tym polskie litery) na \xHH
The documentation for this class was generated from the following file: