add operator<< for Server

This commit is contained in:
Michael Davidsaver
2020-07-24 19:12:17 -07:00
parent 9328d193af
commit 63912a017a
8 changed files with 153 additions and 1 deletions
+12 -1
View File
@@ -441,7 +441,7 @@ Value SharedPV::fetch() const
struct StaticSource::Impl : public Source
{
RWLock lock;
mutable RWLock lock;
list_t pvs;
decltype (List::names) list;
@@ -488,6 +488,17 @@ struct StaticSource::Impl : public Source
return ret;
}
virtual void show(std::ostream& strm) override final
{
strm<<"StaticProvider";
auto G(lock.lockReader());
for(auto& pair : pvs) {
strm<<"\n"<<indent{}<<pair.first;
// TODO: details for SharedPV
}
}
};
StaticSource StaticSource::build()