xorp

Args Class Reference

Break a string into a sequence of space separated words. More...

#include <test_args.hh>

List of all members.

Public Member Functions

 Args (string &line)
bool get_next (string &word)
void push_back ()
const string & original_line () const
 Args (string &line)
bool get_next (string &word)
void push_back ()
const string & original_line () const

Private Attributes

const string _line
vector< string > _words
size_t _pos

Detailed Description

Break a string into a sequence of space separated words.


Member Function Documentation

bool Args::get_next ( string &  word) [inline]
Parameters:
wordif a word is available it is placed here.
Returns:
true if a word has been returned.
bool Args::get_next ( string &  word) [inline]
Parameters:
wordif a word is available it is placed here.
Returns:
true if a word has been returned.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations