mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: Add ctors to adopt existing DDS API objects
This commit is contained in:
@@ -34,6 +34,11 @@ struct DDSTopology::Impl
|
||||
, fTopo(fTopoFile.string())
|
||||
{}
|
||||
|
||||
explicit Impl(dds::topology_api::CTopology nativeTopology, DDSEnvironment env)
|
||||
: fEnv(std::move(env))
|
||||
, fTopo(std::move(nativeTopology))
|
||||
{}
|
||||
|
||||
DDSEnvironment fEnv;
|
||||
Path fTopoFile;
|
||||
dds::topology_api::CTopology fTopo;
|
||||
@@ -43,6 +48,10 @@ DDSTopology::DDSTopology(Path topoFile, DDSEnvironment env)
|
||||
: fImpl(std::make_shared<Impl>(std::move(topoFile), std::move(env)))
|
||||
{}
|
||||
|
||||
DDSTopology::DDSTopology(dds::topology_api::CTopology nativeTopology, DDSEnv env)
|
||||
: fImpl(std::make_shared<Impl>(std::move(nativeTopology), std::move(env)))
|
||||
{}
|
||||
|
||||
auto DDSTopology::GetEnv() const -> DDSEnvironment { return fImpl->fEnv; }
|
||||
|
||||
auto DDSTopology::GetTopoFile() const -> Path
|
||||
|
Reference in New Issue
Block a user