#pragma once

#include <softbus_core/models/MetadataDef.h>

#include <map>
#include <optional>
#include <string>

namespace softbus::daemon {

class MetadataRegistry {
public:
    void registerMetadata(const softbus::core::MetadataDef& metadata);
    std::optional<softbus::core::MetadataDef> findByObjectRef(const std::string& objectRef) const;

private:
    std::map<std::string, softbus::core::MetadataDef> entries_;
};

} // namespace softbus::daemon
