Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Parse::OptionWasRead Class Reference

#include <ParseAction.h>

Inheritance diagram for Parse::OptionWasRead:

Inheritance graph
[legend]
Collaboration diagram for Parse::OptionWasRead:

Collaboration graph
[legend]
List of all members.

Public Methods

 OptionWasRead (bool &val)
void getValue (std::istream &input)

Detailed Description

ParseAction used to determine if a certain action was called. It does not actually read any values like ReadAndCheck does, but will set a bool to true if it was called. Useful for parsing option flags that don't actually have any values associated with the option
ex, the -g flag to gcc. While it enables debugging, no values follow the flag

Definition at line 52 of file ParseAction.h.


Constructor & Destructor Documentation

OptionWasRead::OptionWasRead bool &    v
 

Parameters:
reference  to bool that will be set to true iff getValue() is called

Definition at line 18 of file ParseAction.cpp.


Member Function Documentation

void OptionWasRead::getValue std::istream &    in [virtual]
 

Sets bool reference passed in constructor to true if called

Reimplemented from Parse::ParseAction.

Definition at line 22 of file ParseAction.cpp.


The documentation for this class was generated from the following files:
Generated on Tue May 21 07:26:57 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001