Validators PropertyStream support

This commit is contained in:
Vinnie Falco
2013-10-06 18:25:59 -07:00
parent 0900dfe46f
commit 4868bc4df7

View File

@@ -284,6 +284,31 @@ public:
}
}
//--------------------------------------------------------------------------
//
// PropertyStream
//
void writeSources (PropertyStream stream)
{
PropertyStream::ScopedArray sources ("sources", stream);
for (Logic::SourceTable::const_iterator iter (m_logic.m_sources.begin());
iter != m_logic.m_sources.end(); ++iter)
{
stream.append (iter->source->name().toStdString());
}
}
void onWrite (PropertyStream stream)
{
// VFALCO NOTE this is not thread safe (yet)
stream ["trusted"] = m_logic.m_chosenList ? m_logic.m_chosenList->size() : 0;
writeSources (stream);
}
//--------------------------------------------------------------------------
//
// ManagerImp