binary_loopback.h
Go to the documentation of this file.
1 //
2 // Created by nakakura on 22/08/29.
3 //
4 
5 #ifndef SKYWAY_PLUGIN_LOOPBACK_BINARY_PLUGIN_H
6 #define SKYWAY_PLUGIN_LOOPBACK_BINARY_PLUGIN_H
7 
8 #include <skyway/skyway_plugin.h>
9 
10 namespace binary_loopback {
12  private:
13  std::shared_ptr<std::function<void(std::vector<uint8_t>)>> callback_;
14 
15  public:
17  virtual ~BinaryLoopback() override;
18  virtual void Initialize(
19  std::shared_ptr<rapidjson::Document> parameter,
20  std::shared_ptr<std::function<void(std::vector<uint8_t>)>> callback)
21  override;
22  virtual void Execute(std::vector<uint8_t> data) override;
23  virtual void Shutdown() override;
24 };
25 }; // namespace binary_loopback
26 
27 #endif // SKYWAY_PLUGIN_LOOPBACK_BINARY_PLUGIN_H
virtual void Execute(std::vector< uint8_t > data) override
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::vector< uint8_t >)>> callback) override
std::shared_ptr< std::function< void(std::vector< uint8_t >)> > callback_
virtual void Shutdown() override


skyway
Author(s): Toshiya Nakakura
autogenerated on Sat Apr 15 2023 02:08:21