Class for Parser.
More...
#include <Parser.hpp>
|
void | parseArgs (const std::vector< std::string_view > &argv) |
|
void | parseEnv (const std::unordered_map< std::string, std::string > &envp) |
|
void | handleLongOption (const std::string_view &arg, const std::vector< std::string_view > &argv, size_t &index) |
|
void | handleShortOptions (const std::string_view &arg) |
|
Class for Parser.
Definition at line 134 of file Parser.hpp.
◆ Parser() [1/3]
ven::Parser::Parser |
( |
int | argc, |
|
|
char * | argv[], |
|
|
char * | envp[] ) |
◆ ~Parser()
◆ Parser() [2/3]
ven::Parser::Parser |
( |
const Parser & | | ) |
|
|
delete |
◆ Parser() [3/3]
ven::Parser::Parser |
( |
Parser && | | ) |
|
|
delete |
◆ getConfig()
Config ven::Parser::getConfig |
( |
| ) |
const |
|
inlinenodiscard |
◆ handleLongOption()
void ven::Parser::handleLongOption |
( |
const std::string_view & | arg, |
|
|
const std::vector< std::string_view > & | argv, |
|
|
size_t & | index ) |
|
private |
◆ handleShortOptions()
void ven::Parser::handleShortOptions |
( |
const std::string_view & | arg | ) |
|
|
private |
◆ isValidOption()
static bool ven::Parser::isValidOption |
( |
const std::string_view & | option | ) |
|
|
inlinestaticnodiscardprivate |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ parseArgs()
void ven::Parser::parseArgs |
( |
const std::vector< std::string_view > & | argv | ) |
|
|
private |
◆ parseEnv()
void ven::Parser::parseEnv |
( |
const std::unordered_map< std::string, std::string > & | envp | ) |
|
|
private |
◆ printArguments()
void ven::Parser::printArguments |
( |
| ) |
const |
◆ m_config
◆ m_state
bool ven::Parser::m_state = true |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/VEngine/VEngine/include/VEngine/Utils/Parser.hpp
- /home/runner/work/VEngine/VEngine/src/Utils/parser.cpp