SDK: Forward declare types where possible

This commit is contained in:
Dennis Klein
2019-07-19 20:49:56 +02:00
committed by Dennis Klein
parent eb9dcdd1f9
commit a9b4788756
5 changed files with 31 additions and 7 deletions

View File

@@ -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