#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 | SetIndent (unsigned n) |
bool | SetIntBase (EMITTER_MANIP value) |
Emitter & | SetLocalIndent (const _Indent &indent) |
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 _Null &null) |
Emitter & | Write (const _Comment &comment) |
Emitter & | Write (const _Tag &tag) |
Emitter & | Write (const _Anchor &anchor) |
Emitter & | Write (const _Alias &alias) |
Emitter & | Write (bool b) |
Emitter & | Write (const std::string &str) |
template<typename T > | |
Emitter & | WriteIntegralType (T value) |
template<typename T > | |
Emitter & | WriteStreamable (T value) |
~Emitter () | |
Private Types | |
enum | ATOMIC_TYPE { AT_SCALAR, AT_SEQ, AT_BLOCK_SEQ, AT_FLOW_SEQ, AT_MAP, AT_BLOCK_MAP, AT_FLOW_MAP } |
Private Member Functions | |
void | EmitBeginMap () |
void | EmitBeginSeq () |
void | EmitEndMap () |
void | EmitEndSeq () |
void | EmitKey () |
void | EmitSeparationIfNecessary () |
void | EmitValue () |
bool | GotoNextPreAtomicState () |
void | PostAtomicWrite () |
void | PostWriteIntegralType (const std::stringstream &str) |
void | PreAtomicWrite () |
void | PreWriteIntegralType (std::stringstream &str) |
Private Attributes | |
std::auto_ptr< EmitterState > | m_pState |
ostream | m_stream |
Definition at line 12 of file emitter.h.
enum YAML::Emitter::ATOMIC_TYPE [private] |
YAML::Emitter::Emitter | ( | ) |
YAML::Emitter::~Emitter | ( | ) |
const char* YAML::Emitter::c_str | ( | ) | const |
void YAML::Emitter::EmitBeginMap | ( | ) | [private] |
void YAML::Emitter::EmitBeginSeq | ( | ) | [private] |
void YAML::Emitter::EmitEndMap | ( | ) | [private] |
void YAML::Emitter::EmitEndSeq | ( | ) | [private] |
void YAML::Emitter::EmitKey | ( | ) | [private] |
void YAML::Emitter::EmitSeparationIfNecessary | ( | ) | [private] |
void YAML::Emitter::EmitValue | ( | ) | [private] |
const std::string YAML::Emitter::GetLastError | ( | ) | const |
bool YAML::Emitter::good | ( | ) | const |
bool YAML::Emitter::GotoNextPreAtomicState | ( | ) | [private] |
void YAML::Emitter::PostAtomicWrite | ( | ) | [private] |
void YAML::Emitter::PostWriteIntegralType | ( | const std::stringstream & | str | ) | [private] |
void YAML::Emitter::PreAtomicWrite | ( | ) | [private] |
void YAML::Emitter::PreWriteIntegralType | ( | std::stringstream & | str | ) | [private] |
bool YAML::Emitter::SetBoolFormat | ( | EMITTER_MANIP | value | ) |
bool YAML::Emitter::SetIndent | ( | unsigned | n | ) |
bool YAML::Emitter::SetIntBase | ( | EMITTER_MANIP | value | ) |
Emitter& YAML::Emitter::SetLocalValue | ( | EMITTER_MANIP | value | ) |
bool YAML::Emitter::SetMapFormat | ( | EMITTER_MANIP | value | ) |
bool YAML::Emitter::SetOutputCharset | ( | EMITTER_MANIP | value | ) |
bool YAML::Emitter::SetPostCommentIndent | ( | unsigned | n | ) |
bool YAML::Emitter::SetPreCommentIndent | ( | unsigned | n | ) |
bool YAML::Emitter::SetSeqFormat | ( | EMITTER_MANIP | value | ) |
bool YAML::Emitter::SetStringFormat | ( | EMITTER_MANIP | value | ) |
unsigned YAML::Emitter::size | ( | ) | const |
Emitter& YAML::Emitter::Write | ( | bool | b | ) |
Emitter& YAML::Emitter::Write | ( | const std::string & | str | ) |
Emitter & YAML::Emitter::WriteIntegralType | ( | T | value | ) | [inline] |
Emitter & YAML::Emitter::WriteStreamable | ( | T | value | ) | [inline] |
std::auto_ptr<EmitterState> YAML::Emitter::m_pState [private] |
ostream YAML::Emitter::m_stream [private] |