mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: Forward declare types where possible
This commit is contained in:
committed by
Dennis Klein
parent
eb9dcdd1f9
commit
a9b4788756
@@ -8,14 +8,24 @@
|
||||
|
||||
#include "Topology.h"
|
||||
|
||||
#include <DDS/Topology.h>
|
||||
#include <utility>
|
||||
|
||||
namespace fair {
|
||||
namespace mq {
|
||||
namespace sdk {
|
||||
|
||||
struct Topology::Impl
|
||||
{
|
||||
Impl(dds::topology_api::CTopology topo)
|
||||
: fDDSTopology(std::move(topo))
|
||||
{}
|
||||
|
||||
dds::topology_api::CTopology fDDSTopology;
|
||||
};
|
||||
|
||||
Topology::Topology(dds::topology_api::CTopology topo)
|
||||
: fDDSTopology(std::move(topo))
|
||||
: fImpl(std::make_shared<Impl>(std::move(topo)))
|
||||
{}
|
||||
|
||||
} // namespace sdk
|
||||
|
Reference in New Issue
Block a user