#include <emitter.h>
Public Member Functions | |
const char * | c_str () const |
Emitter () | |
const std::string | GetLastError () const |
bool | good () const |
bool | SetBoolFormat (EMITTER_MANIP value) |
bool | SetDoublePrecision (unsigned n) |
bool | SetFloatPrecision (unsigned n) |
bool | SetIndent (unsigned n) |
bool | SetIntBase (EMITTER_MANIP value) |
Emitter & | SetLocalIndent (const _Indent &indent) |
Emitter & | SetLocalPrecision (const _Precision &precision) |
Emitter & | SetLocalValue (EMITTER_MANIP value) |
bool | SetMapFormat (EMITTER_MANIP value) |
bool | SetOutputCharset (EMITTER_MANIP value) |
bool | SetPostCommentIndent (unsigned n) |
bool | SetPreCommentIndent (unsigned n) |
bool | SetSeqFormat (EMITTER_MANIP value) |
bool | SetStringFormat (EMITTER_MANIP value) |
unsigned | size () const |
Emitter & | Write (const std::string &str) |
Emitter & | Write (bool b) |
Emitter & | Write (char ch) |
Emitter & | Write (const _Alias &alias) |
Emitter & | Write (const _Anchor &anchor) |
Emitter & | Write (const _Tag &tag) |
Emitter & | Write (const _Comment &comment) |
Emitter & | Write (const _Null &null) |
Emitter & | Write (const Binary &binary) |
template<typename T > | |
Emitter & | WriteIntegralType (T value) |
template<typename T > | |
Emitter & | WriteStreamable (T value) |
~Emitter () | |
Private Member Functions | |
bool | CanEmitNewline () const |
const char * | ComputeFullBoolName (bool b) const |
void | EmitBeginDoc () |
void | EmitBeginMap () |
void | EmitBeginSeq () |
void | EmitEndDoc () |
void | EmitEndMap () |
void | EmitEndSeq () |
void | EmitKey () |
void | EmitKindTag () |
void | EmitNewline () |
void | EmitSeparationIfNecessary () |
void | EmitTag (bool verbatim, const _Tag &tag) |
void | EmitValue () |
unsigned | GetDoublePrecision () const |
unsigned | GetFloatPrecision () const |
bool | GotoNextPreAtomicState () |
void | PostAtomicWrite () |
void | PostWriteIntegralType (const std::stringstream &str) |
void | PostWriteStreamable (const std::stringstream &str) |
void | PreAtomicWrite () |
void | PreWriteIntegralType (std::stringstream &str) |
void | PreWriteStreamable (std::stringstream &str) |
template<typename T > | |
void | SetStreamablePrecision (std::stringstream &) |
Private Attributes | |
std::auto_ptr< EmitterState > | m_pState |
ostream | m_stream |
Definition at line 10 of file emitter.cpp.
Definition at line 14 of file emitter.cpp.
const char * YAML_PM::Emitter::c_str | ( | ) | const |
Definition at line 18 of file emitter.cpp.
bool YAML_PM::Emitter::CanEmitNewline | ( | ) | const [private] |
Definition at line 605 of file emitter.cpp.
const char * YAML_PM::Emitter::ComputeFullBoolName | ( | bool | b | ) | const [private] |
Definition at line 713 of file emitter.cpp.
void YAML_PM::Emitter::EmitBeginDoc | ( | ) | [private] |
Definition at line 351 of file emitter.cpp.
void YAML_PM::Emitter::EmitBeginMap | ( | ) | [private] |
Definition at line 462 of file emitter.cpp.
void YAML_PM::Emitter::EmitBeginSeq | ( | ) | [private] |
Definition at line 392 of file emitter.cpp.
void YAML_PM::Emitter::EmitEndDoc | ( | ) | [private] |
Definition at line 371 of file emitter.cpp.
void YAML_PM::Emitter::EmitEndMap | ( | ) | [private] |
Definition at line 496 of file emitter.cpp.
void YAML_PM::Emitter::EmitEndSeq | ( | ) | [private] |
Definition at line 426 of file emitter.cpp.
void YAML_PM::Emitter::EmitKey | ( | ) | [private] |
Definition at line 532 of file emitter.cpp.
void YAML_PM::Emitter::EmitKindTag | ( | ) | [private] |
Definition at line 837 of file emitter.cpp.
void YAML_PM::Emitter::EmitNewline | ( | ) | [private] |
Definition at line 594 of file emitter.cpp.
void YAML_PM::Emitter::EmitSeparationIfNecessary | ( | ) | [private] |
Definition at line 338 of file emitter.cpp.
void YAML_PM::Emitter::EmitTag | ( | bool | verbatim, |
const _Tag & | tag | ||
) | [private] |
void YAML_PM::Emitter::EmitValue | ( | ) | [private] |
Definition at line 569 of file emitter.cpp.
unsigned YAML_PM::Emitter::GetDoublePrecision | ( | ) | const [private] |
Definition at line 696 of file emitter.cpp.
unsigned YAML_PM::Emitter::GetFloatPrecision | ( | ) | const [private] |
Definition at line 691 of file emitter.cpp.
const std::string YAML_PM::Emitter::GetLastError | ( | ) | const |
Definition at line 34 of file emitter.cpp.
bool YAML_PM::Emitter::good | ( | ) | const |
Definition at line 29 of file emitter.cpp.
bool YAML_PM::Emitter::GotoNextPreAtomicState | ( | ) | [private] |
Definition at line 169 of file emitter.cpp.
void YAML_PM::Emitter::PostAtomicWrite | ( | ) | [private] |
Definition at line 289 of file emitter.cpp.
void YAML_PM::Emitter::PostWriteIntegralType | ( | const std::stringstream & | str | ) | [private] |
Definition at line 701 of file emitter.cpp.
void YAML_PM::Emitter::PostWriteStreamable | ( | const std::stringstream & | str | ) | [private] |
Definition at line 707 of file emitter.cpp.
void YAML_PM::Emitter::PreAtomicWrite | ( | ) | [private] |
Definition at line 278 of file emitter.cpp.
void YAML_PM::Emitter::PreWriteIntegralType | ( | std::stringstream & | str | ) | [private] |
Definition at line 662 of file emitter.cpp.
void YAML_PM::Emitter::PreWriteStreamable | ( | std::stringstream & | str | ) | [private] |
Definition at line 685 of file emitter.cpp.
bool YAML_PM::Emitter::SetBoolFormat | ( | EMITTER_MANIP | value | ) |
Definition at line 50 of file emitter.cpp.
bool YAML_PM::Emitter::SetDoublePrecision | ( | unsigned | n | ) |
Definition at line 102 of file emitter.cpp.
bool YAML_PM::Emitter::SetFloatPrecision | ( | unsigned | n | ) |
Definition at line 97 of file emitter.cpp.
bool YAML_PM::Emitter::SetIndent | ( | unsigned | n | ) |
Definition at line 82 of file emitter.cpp.
bool YAML_PM::Emitter::SetIntBase | ( | EMITTER_MANIP | value | ) |
Definition at line 62 of file emitter.cpp.
Emitter & YAML_PM::Emitter::SetLocalIndent | ( | const _Indent & | indent | ) |
Definition at line 152 of file emitter.cpp.
Emitter & YAML_PM::Emitter::SetLocalPrecision | ( | const _Precision & | precision | ) |
Definition at line 158 of file emitter.cpp.
Emitter & YAML_PM::Emitter::SetLocalValue | ( | EMITTER_MANIP | value | ) |
Definition at line 109 of file emitter.cpp.
bool YAML_PM::Emitter::SetMapFormat | ( | EMITTER_MANIP | value | ) |
Definition at line 72 of file emitter.cpp.
bool YAML_PM::Emitter::SetOutputCharset | ( | EMITTER_MANIP | value | ) |
Definition at line 40 of file emitter.cpp.
bool YAML_PM::Emitter::SetPostCommentIndent | ( | unsigned | n | ) |
Definition at line 92 of file emitter.cpp.
bool YAML_PM::Emitter::SetPreCommentIndent | ( | unsigned | n | ) |
Definition at line 87 of file emitter.cpp.
bool YAML_PM::Emitter::SetSeqFormat | ( | EMITTER_MANIP | value | ) |
Definition at line 67 of file emitter.cpp.
void YAML_PM::Emitter::SetStreamablePrecision< double > | ( | std::stringstream & | str | ) | [inline, private] |
bool YAML_PM::Emitter::SetStringFormat | ( | EMITTER_MANIP | value | ) |
Definition at line 45 of file emitter.cpp.
unsigned YAML_PM::Emitter::size | ( | ) | const |
Definition at line 23 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const std::string & | str | ) |
Definition at line 618 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | bool | b | ) |
Definition at line 748 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | char | ch | ) |
Definition at line 766 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const _Alias & | alias | ) |
Definition at line 780 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const _Anchor & | anchor | ) |
Definition at line 795 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const _Tag & | tag | ) |
Definition at line 811 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const _Comment & | comment | ) |
Definition at line 842 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const _Null & | null | ) |
Definition at line 856 of file emitter.cpp.
Emitter & YAML_PM::Emitter::Write | ( | const Binary & | binary | ) |
Definition at line 868 of file emitter.cpp.
Emitter & YAML_PM::Emitter::WriteIntegralType | ( | T | value | ) | [inline] |
Emitter & YAML_PM::Emitter::WriteStreamable | ( | T | value | ) | [inline] |
std::auto_ptr<EmitterState> YAML_PM::Emitter::m_pState [private] |
ostream YAML_PM::Emitter::m_stream [private] |