SDK: Require DDS 2.5.20

* Use the new interface: CTopology::getName
* Enhance Example.DDS
This commit is contained in:
Dennis Klein
2019-07-24 10:23:15 +02:00
parent 7d1ee82c6b
commit de4fca177e
5 changed files with 13 additions and 6 deletions

View File

@@ -82,13 +82,13 @@ std::vector<uint64_t> DDSTopology::GetDeviceList()
return taskIDs;
}
// auto DDSTopology::GetName() const -> std::string { return fImpl->fTopo.getName(); }
auto DDSTopology::GetName() const -> std::string { return fImpl->fTopo.getName(); }
auto operator<<(std::ostream& os, const DDSTopology& t) -> std::ostream&
try {
return os << "DDS topology: " /*<< t.GetName() <<*/ " (loaded from " << t.GetTopoFile() << ")";
return os << "DDS topology: " << t.GetName() << " (loaded from " << t.GetTopoFile() << ")";
} catch (std::runtime_error&) {
return os << "DDS topology: " /*<< t.GetName()*/;
return os << "DDS topology: " << t.GetName();
}
} // namespace sdk