Extracted HumanReadableNameMapper::mapName()

No cleanup of the new function was performed to keep the diff minimal.
This commit is contained in:
Veloman Yunkan
2024-03-04 17:30:13 +04:00
committed by Matthieu Gautier
parent 4e64d26ede
commit 5b9daf0d9d
2 changed files with 10 additions and 1 deletions

View File

@ -54,6 +54,9 @@ class HumanReadableNameMapper : public NameMapper {
virtual ~HumanReadableNameMapper() = default;
virtual std::string getNameForId(const std::string& id) const;
virtual std::string getIdForName(const std::string& name) const;
private:
void mapName(const kiwix::Library& lib, std::string name, std::string id);
};
class UpdatableNameMapper : public NameMapper {