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


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