ReXGlue SDK
Loading...
Searching...
No Matches
rex::SettingOwner Class Reference

#include <rex/setting.h>

Inheritance diagram for rex::SettingOwner:
[legend]

Public Member Functions

 SettingOwner (std::string_view scope)
virtual ~SettingOwner ()
const std::string & GetScope () const
std::span< SettingBase *const > GetOwnedSettings () const

Friends

class SettingBase
class ConsoleCommand
class SettingsRegistry

Additional Inherited Members

Protected Member Functions inherited from rex::NonCopyable
 NonCopyable (const NonCopyable &)=delete
NonCopyable & operator= (const NonCopyable &)=delete

Detailed Description

A class whose members include settings. Its scope prefixes every member name.

Constructor & Destructor Documentation

◆ SettingOwner()

rex::SettingOwner::SettingOwner ( std::string_view scope)
explicit
Parameters
scopeThe scope, such as "apu" or "gpu.xenos".

◆ ~SettingOwner()

virtual rex::SettingOwner::~SettingOwner ( )
virtual

Removes the owner and its settings from the registry.

Member Function Documentation

◆ GetOwnedSettings()

std::span< SettingBase *const > rex::SettingOwner::GetOwnedSettings ( ) const

Returns the settings declared in this owner, in declaration order.


The documentation for this class was generated from the following file: