yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
flag.h File Reference
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yaze::util::IFlag
 
class  yaze::util::Flag< T >
 
class  yaze::util::FlagRegistry
 
class  yaze::util::FlagParser
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::util
 

Macros

#define DECLARE_FLAG(type, name)
 
#define DEFINE_FLAG(type, name, default_val, help_text)
 
#define FLAG_VALUE(name)
 

Functions

FlagRegistryyaze::util::global_flag_registry ()
 

Macro Definition Documentation

◆ DECLARE_FLAG

#define DECLARE_FLAG ( type,
name )
Value:
extern yaze::util::Flag<type>* FLAGS_##name

Definition at line 105 of file flag.h.

◆ DEFINE_FLAG

#define DEFINE_FLAG ( type,
name,
default_val,
help_text )
Value:
yaze::util::Flag<type>* FLAGS_##name = \
yaze::util::global_flag_registry()->RegisterFlag<type>( \
"--" #name, (default_val), (help_text))

Definition at line 108 of file flag.h.

◆ FLAG_VALUE

#define FLAG_VALUE ( name)
Value:
(FLAGS_##name->Get())

Definition at line 114 of file flag.h.