#pragma once #include "interfaces/status_manager.hpp" #include "interfaces/statusline.hpp" #include #include #include #include class StatusManager : public IStatusManager, public yacppdic::AutoWirable { public: void bind(const std::shared_ptr &statusline) noexcept override; void set_section_title( const StatusLineSection §ion, const std::string_view &title) noexcept override; void set_section_body( const StatusLineSection §ion, const std::string_view &body) noexcept override; private: std::shared_ptr _statusline; std::unordered_map _title_lengths; };