// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #include "profilepartxmlparserprovider.h" #include std::unordered_map()>> const & ProfilePartXMLParserProvider::profilePartParserProviders() const { return profilePartParserProviders_(); } std::unordered_map()>> & ProfilePartXMLParserProvider::profilePartParserProviders_() { static std::unordered_map< std::string, std::function()>> providers; return providers; } bool ProfilePartXMLParserProvider::registerProvider( std::string_view componentID, std::function()> &&provider) { profilePartParserProviders_().emplace(std::string(componentID), std::move(provider)); return true; }