Class sh::settings::SettingsRegistration

class sh::settings::SettingsRegistration

Used for registering a setting instance.

Constructing a SettingsRegistration automatically registers a sh::settings::Setting, deleting a one automatically unregisters it.

Public Functions

SettingsRegistration(std::shared_ptr<sh::settings::Setting> setting)

Is intended to be directly constructed from everywhere.

~SettingsRegistration()
std::shared_ptr<sh::settings::Setting> setting()

Private Members

std::shared_ptr<sh::settings::Setting> _setting