add operator<< for Server
This commit is contained in:
+12
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user