blob: 05a8616f4e2262a5d92d28c1e5da2affd169bf1d [file] [log] [blame]
#pragma once
#include <string_view>
namespace bios_bmc_smm_error_logger
{
namespace rde
{
/**
* @brief Base class for publishing data to ExternalStorer.
*/
class ExternalStorerInterface
{
public:
virtual ~ExternalStorerInterface() = default;
/**
* @brief Publish JSON string to ExternalStorer.
*
* @param[in] jsonStr - a valid JSON string.
* @return true if successful.
*/
virtual bool publishJson(std::string_view jsonStr) = 0;
};
} // namespace rde
} // namespace bios_bmc_smm_error_logger