blob: 0ec85ae7292e85a8435cf56f00955bdea1a90b78 [file] [log] [blame]
Jason Ling85e54f12020-11-05 18:47:21 -08001#pragma once
2#include "buildjson.hpp"
3#include "version_handler.hpp"
4
5#include <nlohmann/json.hpp>
6
7#include <vector>
8
9namespace 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 IIIabf17352020-12-22 21:07:11 -080015class VersionHandlersBuilder :
16 public HandlersBuilderIfc<VersionBlobHandler::ActionPack>
Jason Ling85e54f12020-11-05 18:47:21 -080017{
18 public:
William A. Kennington IIIabf17352020-12-22 21:07:11 -080019 std::vector<HandlerConfig<VersionBlobHandler::ActionPack>>
Jason Ling85e54f12020-11-05 18:47:21 -080020 buildHandlerFromJson(const nlohmann::json& data) override;
21};
22} // namespace ipmi_flash