mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
31 lines
596 B
C++
31 lines
596 B
C++
#ifndef BOSS_MOD_CONNECTOR_HPP
|
|
#define BOSS_MOD_CONNECTOR_HPP
|
|
|
|
#include<string>
|
|
|
|
namespace Boss { namespace Mod { class Rpc; }}
|
|
namespace Ev { template<typename a> class Io; }
|
|
namespace S { class Bus; }
|
|
|
|
namespace Boss { namespace Mod {
|
|
|
|
/** class Boss::Mod::Connector
|
|
*
|
|
* @brief module that does `connect` commands.
|
|
*/
|
|
class Connector {
|
|
private:
|
|
S::Bus& bus;
|
|
Boss::Mod::Rpc *rpc;
|
|
|
|
Ev::Io<void> connect(std::string const& node);
|
|
void start();
|
|
|
|
public:
|
|
Connector(S::Bus& bus_) : bus(bus_) { start(); }
|
|
Connector(Connector&&) =delete;
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* !defined(BOSS_MOD_CONNECTOR_HPP) */
|