mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Validators PropertyStream support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user