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

@@ -9,8 +9,20 @@
#ifndef FAIR_MQ_SDK_TOPOLOGY_H
#define FAIR_MQ_SDK_TOPOLOGY_H
#include <DDS/Topology.h>
#include <fairmq/States.h>
#include <functional>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
namespace dds {
namespace topology_api {
class CTopology;
} // namespace topology_api
} // namespace dds
namespace fair {
namespace mq {
@@ -24,12 +36,13 @@ class Topology
{
public:
/// Construct a FairMQ topology from an existing DDS session via the dds::topology_api
/// @brief Construct a FairMQ topology from an existing DDS session via the dds::topology_api
/// @param topo An initialized CTopology object
explicit Topology(dds::topology_api::CTopology topo);
private:
dds::topology_api::CTopology fDDSTopology;
struct Impl;
std::shared_ptr<Impl> fImpl;
};
} // namespace sdk