CLI  2.9
CommandLineIterator Class Reference

Command line iteration. More...

#include <command_line.h>

Inheritance diagram for CommandLineIterator:

Public Member Functions

 CommandLineIterator (const CommandLine &CLI_CmdLine)
 Regular constructor. More...
 
virtual ~CommandLineIterator (void)
 Destructor. More...
 
const bool StepIt (void)
 Iteration. More...
 
const bool operator== (const Element &CLI_Element) const
 Checks whether the element corresponds to the current element. More...
 
const Element *const operator* (void) const
 Current element accessor. More...
 
- Public Member Functions inherited from Object
virtual ~Object (void)=0
 Pure virtual destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Object
 Object (void)
 Default constructor only available to sub-classes. More...
 

Detailed Description

Command line iteration.

Scans the results of a command line analysis described in the CommandLine class.

Definition at line 146 of file command_line.h.

Constructor & Destructor Documentation

◆ CommandLineIterator()

CommandLineIterator::CommandLineIterator ( const CommandLine CLI_CmdLine)
explicit

Regular constructor.

Parameters
CLI_CmdLineCommand line objet to iterate.

◆ ~CommandLineIterator()

virtual CommandLineIterator::~CommandLineIterator ( void  )
virtual

Destructor.

Member Function Documentation

◆ operator*()

const Element* const CommandLineIterator::operator* ( void  ) const

Current element accessor.

Returns
Current element reference.

◆ operator==()

const bool CommandLineIterator::operator== ( const Element CLI_Element) const

Checks whether the element corresponds to the current element.

Returns
true if the element matches, false otherwise.
Parameters
CLI_ElementElement to check.

◆ StepIt()

const bool CommandLineIterator::StepIt ( void  )

Iteration.

Returns
true: Iteration succeeded.
false: Iteration failed.

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