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

#include <flag.h>

Collaboration diagram for yaze::util::FlagParser:

Public Member Functions

 FlagParser (FlagRegistry *registry)
 
void Parse (int argc, char **argv)
 
void Parse (std::vector< std::string > *tokens)
 

Private Member Functions

bool ExtractFlagAndValue (const std::string &token, std::string *flag_name, std::string *value_string)
 

Private Attributes

FlagRegistryregistry_
 

Detailed Description

Definition at line 116 of file flag.h.

Constructor & Destructor Documentation

◆ FlagParser()

yaze::util::FlagParser::FlagParser ( FlagRegistry * registry)
inlineexplicit

Definition at line 118 of file flag.h.

References registry_.

Member Function Documentation

◆ Parse() [1/2]

void yaze::util::FlagParser::Parse ( int argc,
char ** argv )
inline

Definition at line 121 of file flag.h.

References Parse().

Referenced by main(), main(), and Parse().

Here is the call graph for this function:

◆ Parse() [2/2]

void yaze::util::FlagParser::Parse ( std::vector< std::string > * tokens)

Definition at line 6 of file flag.cc.

References ExtractFlagAndValue(), yaze::util::IFlag::ParseValue(), and registry_.

Here is the call graph for this function:

◆ ExtractFlagAndValue()

bool yaze::util::FlagParser::ExtractFlagAndValue ( const std::string & token,
std::string * flag_name,
std::string * value_string )
inlineprivate

Definition at line 140 of file flag.h.

Referenced by Parse().

Member Data Documentation

◆ registry_

FlagRegistry* yaze::util::FlagParser::registry_
private

Definition at line 135 of file flag.h.

Referenced by FlagParser(), and Parse().


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