yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::util::Flag< T > Class Template Reference

#include <flag.h>

Inheritance diagram for yaze::util::Flag< T >:
Collaboration diagram for yaze::util::Flag< T >:

Public Member Functions

 Flag (const std::string &name, const T &default_value, const std::string &help_text)
 
const std::string & name () const override
 
const std::string & help () const override
 
void ParseValue (const std::string &text) override
 
const T & Get () const
 
- Public Member Functions inherited from yaze::util::IFlag
virtual ~IFlag ()=default
 

Private Attributes

std::string name_
 
value_
 
default_
 
std::string help_
 

Detailed Description

template<typename T>
class yaze::util::Flag< T >

Definition at line 30 of file flag.h.

Constructor & Destructor Documentation

◆ Flag()

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

Definition at line 32 of file flag.h.

References default_, help_, name(), name_, and value_.

Here is the call graph for this function:

Member Function Documentation

◆ name()

template<typename T>
const std::string & yaze::util::Flag< T >::name ( ) const
inlineoverridevirtual

Implements yaze::util::IFlag.

Definition at line 39 of file flag.h.

References name_.

Referenced by Flag(), and main().

◆ help()

template<typename T>
const std::string & yaze::util::Flag< T >::help ( ) const
inlineoverridevirtual

Implements yaze::util::IFlag.

Definition at line 40 of file flag.h.

References help_.

◆ ParseValue()

template<typename T>
void yaze::util::Flag< T >::ParseValue ( const std::string & text)
inlineoverridevirtual

Implements yaze::util::IFlag.

Definition at line 43 of file flag.h.

References name_, and value_.

◆ Get()

template<typename T>
const T & yaze::util::Flag< T >::Get ( ) const
inline

Definition at line 53 of file flag.h.

References value_.

Member Data Documentation

◆ name_

template<typename T>
std::string yaze::util::Flag< T >::name_
private

Definition at line 56 of file flag.h.

Referenced by Flag(), name(), and ParseValue().

◆ value_

template<typename T>
T yaze::util::Flag< T >::value_
private

Definition at line 57 of file flag.h.

Referenced by Flag(), Get(), and ParseValue().

◆ default_

template<typename T>
T yaze::util::Flag< T >::default_
private

Definition at line 58 of file flag.h.

Referenced by Flag().

◆ help_

template<typename T>
std::string yaze::util::Flag< T >::help_
private

Definition at line 59 of file flag.h.

Referenced by Flag(), and help().


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