Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
Loading...
Searching...
No Matches
elementa::utils::CLOption::Vector Class Reference

A number of options as they are found in a command line. More...

Description

A number of options as they are found in a command line.

Definition at line 116 of file commandline.h.

#include "commandline.h"

Inheritance diagram for elementa::utils::CLOption::Vector:
Collaboration diagram for elementa::utils::CLOption::Vector:

Public Types

using Base = std::vector< CLOption >
 Shortcut. More...
 

Public Attributes

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...
 

Member Typedef Documentation

◆ Base

Shortcut.

Definition at line 121 of file commandline.h.

Member Function Documentation

◆ checkSpec()

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.

◆ therearedeps()

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.


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