Argx 1.0.0-build
Simple argument parser made in C++
 
Loading...
Searching...
No Matches
argx::ARGXAddError Class Reference

#include <ARGXAddError.hpp>

Public Member Functions

 ARGXAddError (const std::string &msg, const std::string &help="")
 
std::pair< const char *, const char * > what () const noexcept
 

Private Attributes

std::string help
 
std::string msg
 

Detailed Description

Definition at line 10 of file ARGXAddError.hpp.

Constructor & Destructor Documentation

◆ ARGXAddError()

argx::ARGXAddError::ARGXAddError ( const std::string & msg,
const std::string & help = "" )

Definition at line 8 of file ARGXAddError.cpp.

9 : msg(msg), help(help)
10 { }

References help, and msg.

Member Function Documentation

◆ what()

std::pair< const char *, const char * > argx::ARGXAddError::what ( ) const
noexcept

Definition at line 12 of file ARGXAddError.cpp.

13 { return { this->msg.c_str(), this->help.c_str() }; }

References help, and msg.

Member Data Documentation

◆ help

std::string argx::ARGXAddError::help
private

Definition at line 14 of file ARGXAddError.hpp.

Referenced by ARGXAddError(), and what().

◆ msg

std::string argx::ARGXAddError::msg
private

Definition at line 13 of file ARGXAddError.hpp.

Referenced by ARGXAddError(), and what().


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