r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
cli::ArgsHandler Class Reference

Class to handle command line arguments. More...

#include <ArgsHandler.hpp>

+ Collaboration diagram for cli::ArgsHandler:

Public Member Functions

 ArgsHandler ()=default
 
 ~ArgsHandler ()=default
 
 ArgsHandler (const ArgsHandler &)=delete
 
ArgsHandleroperator= (const ArgsHandler &)=delete
 
 ArgsHandler (ArgsHandler &&)=delete
 
ArgsHandleroperator= (ArgsHandler &&)=delete
 

Static Public Member Functions

static ArgsConfig ParseArgs (int argc, const char *const argv[])
 
static EnvConfig ParseEnv (const char *const env[])
 

Detailed Description

Class to handle command line arguments.

Definition at line 42 of file ArgsHandler.hpp.

Constructor & Destructor Documentation

◆ ArgsHandler() [1/3]

cli::ArgsHandler::ArgsHandler ( )
default

◆ ~ArgsHandler()

cli::ArgsHandler::~ArgsHandler ( )
default

◆ ArgsHandler() [2/3]

cli::ArgsHandler::ArgsHandler ( const ArgsHandler & )
delete

◆ ArgsHandler() [3/3]

cli::ArgsHandler::ArgsHandler ( ArgsHandler && )
delete

Member Function Documentation

◆ operator=() [1/2]

ArgsHandler & cli::ArgsHandler::operator= ( ArgsHandler && )
delete

◆ operator=() [2/2]

ArgsHandler & cli::ArgsHandler::operator= ( const ArgsHandler & )
delete

◆ ParseArgs()

cli::ArgsConfig cli::ArgsHandler::ParseArgs ( int argc,
const char *const argv[] )
static

Definition at line 83 of file argsHandler.cpp.

References cli::ArgsConfig::fromFile(), HELP_MESSAGE, utl::INFO, utl::Logger::log(), and VERSION_MESSAGE.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ParseEnv()

cli::EnvConfig cli::ArgsHandler::ParseEnv ( const char *const env[])
static

Definition at line 139 of file argsHandler.cpp.

Referenced by main().

+ Here is the caller graph for this function:

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