![]() |
Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
|
A number of options as they are found in a command line. More...
A number of options as they are found in a command line.
Definition at line 116 of file commandline.h.
#include "commandline.h"


Public Types | |
| using | Base = std::vector< CLOption > |
| Shortcut. More... | |
Public Attributes | |
| T | elements |
| STL member. | |
Public Member Functions | |
| Base::const_iterator | find (const std::string &n, bool shortn=true) const |
| Find an option through its name N, either SHORTN or not. | |
| void | checkSpec (void) const |
| Check that the vector of options is valid. More... | |
| bool | therearedeps (void) const |
| Return TRUE if any option in the vector has dependencies. More... | |
| using elementa::utils::CLOption::Vector::Base = std::vector<CLOption> |
Shortcut.
Definition at line 121 of file commandline.h.
| void elementa::utils::CLOption::Vector::checkSpec | ( | void | ) | const |
Check that the vector of options is valid.
Uses checkSpec() in every element and also checks interdependencies.
| bool elementa::utils::CLOption::Vector::therearedeps | ( | void | ) | const |
Return TRUE if any option in the vector has dependencies.
This method scans all the options in the vector.