yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::util::FlagRegistry Class Reference

#include <flag.h>

Public Member Functions

template<typename T>
Flag< T > * RegisterFlag (const std::string &name, const T &default_value, const std::string &help_text)
 
IFlagGetFlag (const std::string &name) const
 
std::vector< IFlag * > AllFlags () const
 

Private Attributes

std::unordered_map< std::string, std::unique_ptr< IFlag > > flags_
 

Detailed Description

Definition at line 62 of file flag.h.

Member Function Documentation

◆ RegisterFlag()

template<typename T>
Flag< T > * yaze::util::FlagRegistry::RegisterFlag ( const std::string & name,
const T & default_value,
const std::string & help_text )
inline

Definition at line 67 of file flag.h.

References flags_.

◆ GetFlag()

IFlag * yaze::util::FlagRegistry::GetFlag ( const std::string & name) const
inline

Definition at line 77 of file flag.h.

References flags_.

◆ AllFlags()

std::vector< IFlag * > yaze::util::FlagRegistry::AllFlags ( ) const
inline

Definition at line 86 of file flag.h.

References flags_.

Member Data Documentation

◆ flags_

std::unordered_map<std::string, std::unique_ptr<IFlag> > yaze::util::FlagRegistry::flags_
private

Definition at line 96 of file flag.h.

Referenced by AllFlags(), GetFlag(), and RegisterFlag().


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