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


skyway
Author(s): Toshiya Nakakura
autogenerated on Thu Oct 26 2023 02:42:21