/** * @file * * @author Max Lammers * @author Mamadou Babaei * * @section LICENSE * * Copyright (c) 2020 - 2022 SenseGlove * * @section DESCRIPTION * * Creates new connections based on PortInfo info. */ #pragma once #include #include "Platform.hpp" #include "PortInfo.hpp" /* Do not forward declare this, or else we'll encounter LINK2019 build error on MSVC */ namespace SGConnect { class Connection; class ConnectionFactory; }// namespace SGConnect class SGConnect::ConnectionFactory { public: static bool CreateConnection(const PortInfo& portInfo, std::shared_ptr& out_connection); public: ConnectionFactory() = delete; virtual ~ConnectionFactory() = delete; };