blob: 4ee7fe8c1c39497892124e9f3d426323e86f1198 [file] [log] [blame]
#pragma once
#include "pldm_base_cmd.hpp"
#include <functional>
#include <map>
#include <string>
#include <typeindex>
using Cmd = std::string;
using Args = std::vector<std::string>;
class Handler
{
public:
const std::map<Cmd, std::function<void(Args&&)>> dispatcher{
{"GetPLDMTypes",
[](Args&& args) { return getPLDMTypes(std::move(args)); }},
{"GetPLDMVersion",
[](Args&& args) { return getPLDMVersion(std::move(args)); }}};
};