Added support for emitting and represeting null

This commit is contained in:
jbeder
2009-07-30 04:42:27 +00:00
parent a2bd317397
commit c043b9c64b
10 changed files with 576 additions and 514 deletions

View File

@@ -666,4 +666,16 @@ namespace YAML
Utils::WriteComment(m_stream, comment.content, m_pState->GetPostCommentIndent());
return *this;
}
Emitter& Emitter::Write(const _Null& /*null*/)
{
if(!good())
return *this;
PreAtomicWrite();
EmitSeparationIfNecessary();
m_stream << "~";
PostAtomicWrite();
return *this;
}
}