Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | #include "buildjson.hpp" |
| 3 | #include "version_handler.hpp" |
| 4 | |
| 5 | #include <nlohmann/json.hpp> |
| 6 | |
| 7 | #include <vector> |
| 8 | |
| 9 | namespace ipmi_flash |
| 10 | { |
| 11 | /** |
| 12 | * provide the method to parse and validate blob entries from json and produce |
| 13 | * something that is usable by the version handler. |
| 14 | */ |
William A. Kennington III | abf1735 | 2020-12-22 21:07:11 -0800 | [diff] [blame] | 15 | class VersionHandlersBuilder : |
| 16 | public HandlersBuilderIfc<VersionBlobHandler::ActionPack> |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 17 | { |
| 18 | public: |
William A. Kennington III | abf1735 | 2020-12-22 21:07:11 -0800 | [diff] [blame] | 19 | std::vector<HandlerConfig<VersionBlobHandler::ActionPack>> |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 20 | buildHandlerFromJson(const nlohmann::json& data) override; |
| 21 | }; |
| 22 | } // namespace ipmi_flash |