/* License: Apache 2.0. See LICENSE file in root directory. */ /* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */ #pragma once #include #include #include #include #include namespace fw_logger { class string_formatter { public: string_formatter(std::unordered_map>> enums); ~string_formatter(void); bool generate_message(const std::string& source, size_t num_of_params, const uint32_t* params, std::string* dest); private: bool replace_params(const std::string& source, const std::map& exp_replace_map, const std::map& enum_replace_map, std::string* dest); std::unordered_map>> _enums; }; }