Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..)
More...
#include <easylogging++.h>
Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..)
Definition at line 1234 of file easylogging++.h.
◆ CommandLineArgs() [1/3]
| el::base::utils::CommandLineArgs::CommandLineArgs |
( |
void |
| ) |
|
|
inline |
Definition at line 1236 of file easylogging++.h.
1237 setArgs(0, static_cast<char**>(
nullptr));
void setArgs(int argc, const char **argv)
Sets arguments and parses them.
◆ CommandLineArgs() [2/3]
| el::base::utils::CommandLineArgs::CommandLineArgs |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
inline |
Definition at line 1239 of file easylogging++.h.
void setArgs(int argc, const char **argv)
Sets arguments and parses them.
◆ CommandLineArgs() [3/3]
| el::base::utils::CommandLineArgs::CommandLineArgs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
inline |
Definition at line 1242 of file easylogging++.h.
void setArgs(int argc, const char **argv)
Sets arguments and parses them.
◆ ~CommandLineArgs()
| virtual el::base::utils::CommandLineArgs::~CommandLineArgs |
( |
void |
| ) |
|
|
inlinevirtual |
◆ empty()
| bool el::base::utils::CommandLineArgs::empty |
( |
void |
| ) |
const |
Returns true if no params available. This exclude argv[0].
◆ getParamValue()
| const char* el::base::utils::CommandLineArgs::getParamValue |
( |
const char * |
paramKey | ) |
const |
Returns value of arguments.
- See also
- hasParamWithValue(const char*)
◆ hasParam()
| bool el::base::utils::CommandLineArgs::hasParam |
( |
const char * |
paramKey | ) |
const |
Return true if arguments has a param (not having a value) i,e without '='.
◆ hasParamWithValue()
| bool el::base::utils::CommandLineArgs::hasParamWithValue |
( |
const char * |
paramKey | ) |
const |
Returns true if arguments contain paramKey with a value (seperated by '=')
◆ setArgs() [1/2]
| void el::base::utils::CommandLineArgs::setArgs |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
inline |
Sets arguments and parses them.
Definition at line 1247 of file easylogging++.h.
1248 setArgs(argc, const_cast<char**>(argv));
void setArgs(int argc, const char **argv)
Sets arguments and parses them.
◆ setArgs() [2/2]
| void el::base::utils::CommandLineArgs::setArgs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Sets arguments and parses them.
◆ size()
| std::size_t el::base::utils::CommandLineArgs::size |
( |
void |
| ) |
const |
Returns total number of arguments. This exclude argv[0].
◆ operator<<
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/easylogging++/easylogging++.h