174 unsigned curIndent =
m_pState->GetCurIndent();
219 if(
m_pState->CurrentlyInLongKey()) {
246 if(
m_pState->CurrentlyInLongKey()) {
313 if(!
m_pState->CurrentlyInLongKey()) {
343 if(
m_pState->RequiresSoftSeparation())
345 else if(
m_pState->RequiresHardSeparation())
358 m_pState->SetError(
"Unexpected begin document");
379 m_pState->SetError(
"Unexpected end document");
404 if(flowType ==
Block) {
415 }
else if(flowType ==
Flow) {
443 unsigned curIndent =
m_pState->GetCurIndent();
448 }
else if(flowType ==
FT_FLOW) {
474 if(flowType ==
Block) {
485 }
else if(flowType ==
Flow) {
513 unsigned curIndent =
m_pState->GetCurIndent();
517 }
else if(flowType ==
FT_FLOW) {
546 unsigned curIndent =
m_pState->GetCurIndent();
550 }
else if(flowType ==
FT_FLOW) {
580 if(
m_pState->CurrentlyInLongKey()) {
587 }
else if(flowType ==
FT_FLOW) {
633 unsigned curIndent =
m_pState->GetCurIndent();
693 return m_pState->GetFloatPrecision();
698 return m_pState->GetDoublePrecision();
736 case UpperCase:
return b ?
"TRUE" :
"FALSE";
737 case CamelCase:
return b ?
"True" :
"False";
738 case LowerCase:
return b ?
"true" :
"false";
745 return b ?
"y" :
"n";
819 bool success =
false;
bool SetOutputCharset(EMITTER_MANIP value)
Emitter & SetLocalPrecision(const _Precision &precision)
bool WriteDoubleQuotedString(ostream &out, const std::string &str, bool escapeNonAscii)
void PreWriteStreamable(std::stringstream &str)
bool SetSeqFormat(EMITTER_MANIP value)
bool WriteChar(ostream &out, char ch)
bool SetDoublePrecision(unsigned n)
Emitter & SetLocalIndent(const _Indent &indent)
bool WriteTag(ostream &out, const std::string &str, bool verbatim)
Emitter & Write(const std::string &str)
const char *const SINGLE_QUOTED_CHAR
unsigned GetDoublePrecision() const
bool SetPostCommentIndent(unsigned n)
const char *const INVALID_ALIAS
const char *const INVALID_ANCHOR
const char *const EXPECTED_KEY_TOKEN
const char *const UNEXPECTED_KEY_TOKEN
bool WriteBinary(ostream &out, const Binary &binary)
bool WriteAnchor(ostream &out, const std::string &str)
const char *const UNEXPECTED_END_MAP
void EmitSeparationIfNecessary()
void PostWriteIntegralType(const std::stringstream &str)
_Tag LocalTag(const std::string content)
bool CanEmitNewline() const
bool SetIntBase(EMITTER_MANIP value)
bool SetMapFormat(EMITTER_MANIP value)
const char * c_str() const
bool WriteLiteralString(ostream &out, const std::string &str, int indent)
const char * ComputeFullBoolName(bool b) const
bool SetStringFormat(EMITTER_MANIP value)
void PreWriteIntegralType(std::stringstream &str)
Emitter & SetLocalValue(EMITTER_MANIP value)
bool SetBoolFormat(EMITTER_MANIP value)
bool SetIndent(unsigned n)
bool SetFloatPrecision(unsigned n)
const char *const UNEXPECTED_VALUE_TOKEN
const char *const UNEXPECTED_END_SEQ
bool GotoNextPreAtomicState()
const std::string GetLastError() const
unsigned GetFloatPrecision() const
bool WriteAlias(ostream &out, const std::string &str)
_Tag SecondaryTag(const std::string content)
bool WriteTagWithPrefix(ostream &out, const std::string &prefix, const std::string &tag)
const char *const INVALID_TAG
std::auto_ptr< EmitterState > m_pState
const char *const EXPECTED_VALUE_TOKEN
void PostWriteStreamable(const std::stringstream &str)
bool WriteComment(ostream &out, const std::string &str, int postCommentIndent)
bool WriteString(ostream &out, const std::string &str, bool inFlow, bool escapeNonAscii)
bool SetPreCommentIndent(unsigned n)
bool WriteSingleQuotedString(ostream &out, const std::string &str)