iRoCS Toolbox  1.1.0
Public Member Functions
ArgIter Class Referenceabstract

The ArgIter class is an abstract class used by the CmdLine class for fetching command line arguments. More...

#include <ArgIter.hh>

Inheritance diagram for ArgIter:
Collaboration diagram for ArgIter:

Public Member Functions

 ArgIter ()
 Constructor. More...
 
virtual ~ArgIter ()
 Destructor. More...
 
virtual const char * fetch ()=0
 Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore. More...
 

Detailed Description

The ArgIter class is an abstract class used by the CmdLine class for fetching command line arguments.

The ArgIter abstract class is an interface for all classes that iterate through the arguments. The main function of this class is the fetch() function which returns the current argument and advances to the next one.

Definition at line 73 of file ArgIter.hh.

Constructor & Destructor Documentation

◆ ArgIter()

ArgIter::ArgIter ( )
inline

Constructor.

Definition at line 81 of file ArgIter.hh.

Referenced by ~ArgIter().

◆ ~ArgIter()

virtual ArgIter::~ArgIter ( )
inlinevirtual

Destructor.

Definition at line 89 of file ArgIter.hh.

Member Function Documentation

◆ fetch()

virtual const char* ArgIter::fetch ( )
pure virtual

Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore.

Returns
current argument, NULL if no arguments

Implemented in IStreamIter, and ArgvIter.

Referenced by ~ArgIter().


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