iRoCS Toolbox
1.1.0
|
The IStreamIter class fetches arguments from an input stream. More...
#include "libcmdline/IStreamIter.hh"
Public Member Functions | |
IStreamIter (std::istream &is, const std::string &separator="---") | |
Constructor. More... | |
const char * | fetch () |
Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore or if the specified separator string occured. More... | |
The IStreamIter class fetches arguments from an input stream.
The ArgvIter class fetches arguments from an input stream. If you want to parse arguments from an input stream like a file input stream or std::cin, etc., you use this class for iterating through them.
Definition at line 97 of file IStreamIter.hh.
|
inline |
Constructor.
is | input stream to read arguments from |
separator | string that marks the eof |
Definition at line 108 of file IStreamIter.hh.
|
inlinevirtual |
Returns the current argument, advances to the next argument and returns NULL is there are no arguments anymore or if the specified separator string occured.
Implements ArgIter.
Definition at line 125 of file IStreamIter.hh.