yaze 0.3.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 78 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 83 of file flag.h.

References flags_.

◆ GetFlag()

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

Definition at line 93 of file flag.h.

References flags_.

Referenced by yaze::util::FlagParser::Parse().

◆ AllFlags()

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

Definition at line 102 of file flag.h.

References flags_.

Referenced by yaze::util::FlagParser::Parse().

Member Data Documentation

◆ flags_

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

Definition at line 112 of file flag.h.

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


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