GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Private Attributes | List of all members
gk::ArgumentParser Class Reference

#include <ArgumentParser.hpp>

Public Member Functions

 ArgumentParser (int argc, char **argv)
 
void parse ()
 
void printHelp ()
 
void debug ()
 
void addArgument (const std::string &name, const Argument &argument)
 
const ArgumentgetArgument (const std::string &name)
 

Private Attributes

std::vector< std::string > m_argv
 
std::unordered_map< std::string, Argumentm_arguments
 

Detailed Description

Definition at line 31 of file ArgumentParser.hpp.

Constructor & Destructor Documentation

§ ArgumentParser()

gk::ArgumentParser::ArgumentParser ( int  argc,
char **  argv 
)

Definition at line 19 of file ArgumentParser.cpp.

Member Function Documentation

§ addArgument()

void gk::ArgumentParser::addArgument ( const std::string &  name,
const Argument argument 
)
inline

Definition at line 40 of file ArgumentParser.hpp.

§ debug()

void gk::ArgumentParser::debug ( )

Definition at line 48 of file ArgumentParser.cpp.

§ getArgument()

const Argument& gk::ArgumentParser::getArgument ( const std::string &  name)
inline

Definition at line 41 of file ArgumentParser.hpp.

§ parse()

void gk::ArgumentParser::parse ( )

Definition at line 27 of file ArgumentParser.cpp.

§ printHelp()

void gk::ArgumentParser::printHelp ( )

Definition at line 42 of file ArgumentParser.cpp.

Member Data Documentation

§ m_arguments

std::unordered_map<std::string, Argument> gk::ArgumentParser::m_arguments
private

Definition at line 45 of file ArgumentParser.hpp.

§ m_argv

std::vector<std::string> gk::ArgumentParser::m_argv
private

Definition at line 44 of file ArgumentParser.hpp.


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