#pragma once

#include <softbus_core/models/ObjectModel.h>

#include <optional>
#include <string>

namespace softbus::daemon {

class ObjectModelRegistry {
public:
    bool loadFromFile(const std::string& path);
    const softbus::core::ObjectModelTree& tree() const { return tree_; }
    std::optional<softbus::core::ObjectRef> findPointByRegister(int registerAddress) const;

private:
    softbus::core::ObjectModelTree tree_;
};

} // namespace softbus::daemon
