#pragma once #include "../../plugin_interface.h" #include #include #include class Command; class webbox_plugin: public webserver_plugin_interface { private: std::unordered_map> m_commands; void registerCommand(std::shared_ptr); public: webbox_plugin(); ~webbox_plugin(); std::string name(); std::string generate_page( std::function& GetServerParam, std::function& GetRequestParam, // request including body (POST...) std::function& SetResponseHeader // to be added to result string ); }; extern "C" BOOST_SYMBOL_EXPORT webbox_plugin webserver_plugin; webbox_plugin webserver_plugin;