nis-util  1.0.D108
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions
arglex_source Class Reference

#include <source.h>

Inheritance diagram for arglex_source:
arglex_source_command_line arglex_source_file arglex_source_pushback

Public Types

typedef boost::shared_ptr
< arglex_source
pointer

Public Member Functions

virtual ~arglex_source ()
virtual bool next (source_location &result_locn, rcstring &result)=0

Protected Member Functions

 arglex_source ()

Private Member Functions

 arglex_source (const arglex_source &rhs)
arglex_sourceoperator= (const arglex_source &rhs)

Detailed Description

The arglex_source class is used to represent an abstract source of command line arguments, usually but not always the actual command line.

Definition at line 31 of file source.h.


Member Typedef Documentation

typedef boost::shared_ptr<arglex_source> arglex_source::pointer

Definition at line 34 of file source.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 22 of file source.cc.

The default constructor. For use by derived classes only.

Definition at line 27 of file source.cc.

arglex_source::arglex_source ( const arglex_source rhs) [private]

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

virtual bool arglex_source::next ( source_location result_locn,
rcstring result 
) [pure virtual]

The next method is used to obtain the next command line argument from the command line source.

Parameters:
result_locnthe read position immidately before the result.
resultwhere to put the command line argument
Returns:
true if argument was available, false if end of line (or end of file, etc).

Implemented in arglex_source_command_line, arglex_source_pushback, and arglex_source_file.

arglex_source& arglex_source::operator= ( const arglex_source rhs) [private]

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.

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