blob: 5055098047b77e8df91baed7baf8cea59fda6ab2 [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 */
15class VersionHandlersBuilder : public HandlersBuilderIfc<VersionActionPack>
16{
17 public:
18 std::vector<HandlerConfig<VersionActionPack>>
19 buildHandlerFromJson(const nlohmann::json& data) override;
20};
21} // namespace ipmi_flash