23 int openPipe(
const std::string& filename);
25 std::future<void>
activate()
override;
32 std::string
type()
const override {
return "file"; };
static const channeling::ChannelCreatorImpl< FileChannel > creator
Definition: filechannel.hpp:27
std::string type() const override
Definition: filechannel.hpp:32
FileChannel(Hub::Hub *hub, const std::string &config)
Definition: filechannel.cpp:8
Definition: config.cpp:10
std::fstream _file
Definition: filechannel.hpp:13
std::future< void > activate() override
Definition: filechannel.cpp:12
~FileChannel()
Definition: filechannel.cpp:48
std::shared_ptr< const Message > message_ptr
Definition: message.hpp:36
void incoming(const messaging::message_ptr &&msg) override
Definition: filechannel.cpp:25
Definition: channel.hpp:225
Definition: filechannel.hpp:12
Definition: channel.hpp:63
Definition: filechannel.cpp:6
const messaging::message_ptr parse(const char *line) const override
Definition: filechannel.cpp:40
int openPipe(const std::string &filename)
Definition: filechannel.cpp:65