1 #ifndef VIEWERS_PREFERENCES_OBSERVER_H_INCLUDED
2 #define VIEWERS_PREFERENCES_OBSERVER_H_INCLUDED
31 template <
typename PreferencesType>
37 static std::shared_ptr<self_type> Create(
const std::shared_ptr<SimShell::Ws::MergedPreferences>& p)
39 auto result = std::shared_ptr<self_type>(
new self_type(p));
40 p->Register(result, std::bind(&self_type::Update, result.get(), std::placeholders::_1));
48 PreferencesType::Update({p});
54 #endif // end_of_include_guard
Namespace for SimPT shell package.
Interface for MergedPreferences.
Listener for SimShell::Event::MergedPreferencesChanged events.