Doxygen Index
-
namespace poc
Typedefs
-
using plugin_fn_t = std::function<std::vector<std::byte>(const std::vector<std::byte> &bytes)>
Generic handler plugin definition.
- Param bytes:
raw bytes of a “command” (which needs de-serialization in the plugin) which will be used/consumed by the plugin.
- Return:
serialized bytes of the response.
-
using plugins_mapping_t = std::unordered_map<std::size_t, plugin_fn_t>
A mapping between a string to it’s corresponding plugin.
Functions
-
plugins_mapping_t load_plugins(const std::string &group_name)
Load mapping of pythonic entry-points, of the given group name, into a mapping of strings to plugins.
- Parameters:
group_name – the group name of the entry-points, for instance it could be “poc.plugins”.
- Returns:
a plugins mapping.
-
using plugin_fn_t = std::function<std::vector<std::byte>(const std::vector<std::byte> &bytes)>
- file poc.hpp
- #include <cstddef>#include <functional>#include <string>#include <unordered_map>#include <vector>
- dir include
- dir include/poc