Argx
1.0.0-build
Simple argument parser made in C++
Loading...
Searching...
No Matches
ARGXAddError.cpp
Go to the documentation of this file.
1
#include <utility>
2
#include <string>
3
4
#include "
../inc/ARGXAddError.hpp
"
5
6
namespace
argx
7
{
8
ARGXAddError::ARGXAddError
(
const
std::string &
msg
,
const
std::string &
help
)
9
:
msg
(
msg
),
help
(
help
)
10
{ }
11
12
std::pair<
const
char
*
/*Error*/
,
const
char
*
/*Help*/
>
ARGXAddError::what
() const noexcept
13
{
return
{ this->
msg
.c_str(), this->
help
.c_str() }; }
14
}
15
ARGXAddError.hpp
argx::ARGXAddError::msg
std::string msg
Definition
ARGXAddError.hpp:13
argx::ARGXAddError::help
std::string help
Definition
ARGXAddError.hpp:14
argx::ARGXAddError::ARGXAddError
ARGXAddError(const std::string &msg, const std::string &help="")
Definition
ARGXAddError.cpp:8
argx::ARGXAddError::what
std::pair< const char *, const char * > what() const noexcept
Definition
ARGXAddError.cpp:12
argx
Definition
Argx.hpp:16
src
ARGXAddError.cpp
Generated by
1.13.2