yaze 0.3.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)
 
bool ExtractFlag (const std::string &token, std::string *flag_name)
 

Private Attributes

FlagRegistryregistry_
 

Detailed Description

Definition at line 130 of file flag.h.

Constructor & Destructor Documentation

◆ FlagParser()

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

Definition at line 132 of file flag.h.

Member Function Documentation

◆ Parse() [1/2]

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

Definition at line 135 of file flag.h.

References Parse().

Referenced by main(), and Parse().

Here is the call graph for this function:

◆ Parse() [2/2]

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

◆ ExtractFlagAndValue()

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

Definition at line 75 of file flag.cc.

Referenced by Parse().

◆ ExtractFlag()

bool yaze::util::FlagParser::ExtractFlag ( const std::string &  token,
std::string *  flag_name 
)
private

Definition at line 87 of file flag.cc.

Referenced by Parse().

Member Data Documentation

◆ registry_

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

Definition at line 149 of file flag.h.

Referenced by Parse().


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