Go to the documentation of this file.
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;
unsigned GetFloatPrecision() const
bool SetFloatPrecision(unsigned n)
bool WriteSingleQuotedString(ostream &out, const std::string &str)
@ ES_WRITING_BLOCK_MAP_KEY
bool SetIndent(unsigned n)
@ ES_WRITING_BLOCK_SEQ_ENTRY
@ ES_DONE_WITH_BLOCK_MAP_KEY
@ ES_WRITING_FLOW_SEQ_ENTRY
bool WriteComment(ostream &out, const std::string &str, int postCommentIndent)
bool WriteChar(ostream &out, char ch)
Emitter & SetLocalValue(EMITTER_MANIP value)
bool GotoNextPreAtomicState()
const char *const INVALID_ALIAS
bool WriteString(ostream &out, const std::string &str, bool inFlow, bool escapeNonAscii)
const char *const SINGLE_QUOTED_CHAR
@ ES_WAITING_FOR_FLOW_MAP_VALUE
const char *const INVALID_TAG
const char *const EXPECTED_KEY_TOKEN
const char * c_str() const
bool CanEmitNewline() const
const char *const UNEXPECTED_END_MAP
void PreWriteIntegralType(std::stringstream &str)
_Tag SecondaryTag(const std::string content)
bool SetSeqFormat(EMITTER_MANIP value)
@ ES_WAITING_FOR_FLOW_SEQ_ENTRY
bool SetIntBase(EMITTER_MANIP value)
@ ES_WAITING_FOR_BLOCK_MAP_ENTRY
void PostWriteStreamable(const std::stringstream &str)
const char *const UNEXPECTED_END_SEQ
@ ES_DONE_WITH_FLOW_MAP_VALUE
@ ES_WAITING_FOR_BLOCK_MAP_KEY
const char *const UNEXPECTED_KEY_TOKEN
const char *const INVALID_ANCHOR
@ ES_DONE_WITH_FLOW_SEQ_ENTRY
bool WriteTagWithPrefix(ostream &out, const std::string &prefix, const std::string &tag)
bool SetPostCommentIndent(unsigned n)
bool SetStringFormat(EMITTER_MANIP value)
bool WriteBinary(ostream &out, const Binary &binary)
std::auto_ptr< EmitterState > m_pState
@ ES_DONE_WITH_BLOCK_SEQ_ENTRY
@ ES_WAITING_FOR_FLOW_MAP_ENTRY
bool SetDoublePrecision(unsigned n)
bool SetBoolFormat(EMITTER_MANIP value)
bool WriteAnchor(ostream &out, const std::string &str)
const char *const EXPECTED_VALUE_TOKEN
const std::string GetLastError() const
@ ES_WAITING_FOR_BLOCK_MAP_VALUE
bool WriteTag(ostream &out, const std::string &str, bool verbatim)
bool WriteLiteralString(ostream &out, const std::string &str, int indent)
@ ES_WRITING_FLOW_MAP_KEY
unsigned GetDoublePrecision() const
@ ES_DONE_WITH_BLOCK_MAP_VALUE
bool SetOutputCharset(EMITTER_MANIP value)
void PreWriteStreamable(std::stringstream &str)
bool SetPreCommentIndent(unsigned n)
bool WriteDoubleQuotedString(ostream &out, const std::string &str, bool escapeNonAscii)
const char *const UNEXPECTED_VALUE_TOKEN
@ ES_WAITING_FOR_BLOCK_SEQ_ENTRY
bool WriteAlias(ostream &out, const std::string &str)
Emitter & SetLocalPrecision(const _Precision &precision)
@ ES_WRITING_FLOW_MAP_VALUE
void EmitSeparationIfNecessary()
void PostWriteIntegralType(const std::stringstream &str)
Emitter & SetLocalIndent(const _Indent &indent)
bool SetMapFormat(EMITTER_MANIP value)
const char * ComputeFullBoolName(bool b) const
@ ES_DONE_WITH_FLOW_MAP_KEY
@ ES_WRITING_BLOCK_MAP_VALUE
_Tag LocalTag(const std::string content)
@ ES_WAITING_FOR_FLOW_MAP_KEY
Emitter & Write(const std::string &str)
mp2p_icp
Author(s):
autogenerated on Wed Oct 23 2024 02:45:39