Fix missing PropertyStream members

This commit is contained in:
Vinnie Falco
2013-10-06 18:25:53 -07:00
parent 8dfe53ff7a
commit 0900dfe46f

View File

@@ -140,6 +140,19 @@ PropertyStream::ScopedObject::~ScopedObject ()
//------------------------------------------------------------------------------
PropertyStream::ScopedArray::ScopedArray (std::string const& key, PropertyStream stream)
: m_stream (stream)
{
m_stream.begin_array (key);
}
PropertyStream::ScopedArray::~ScopedArray ()
{
m_stream.end_array ();
}
//------------------------------------------------------------------------------
PropertyStream::Source::Source (std::string const& name)
: m_name (name)
, m_state (this)
@@ -321,6 +334,16 @@ void PropertyStream::end_object () const
m_sink->end_object ();
}
void PropertyStream::begin_array (std::string const& key) const
{
m_sink->begin_array (key);
}
void PropertyStream::end_array () const
{
m_sink->end_array ();
}
PropertyStream::Sink& PropertyStream::nullSink()
{
struct NullSink : Sink