CommandLineArgBool Class Reference

#include <SSAHAMain.h>

Inheritance diagram for CommandLineArgBool:

Inheritance graph
[legend]
Collaboration diagram for CommandLineArgBool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandLineArgBool (const string &nameLong, const string &nameShort, bool &destination)
virtual bool isThisMe (const string &argName)
void addValue (const string &value)

Protected Attributes

bool & destination_

Detailed Description

Definition at line 225 of file SSAHAMain.h.


Constructor & Destructor Documentation

CommandLineArgBool::CommandLineArgBool ( const string &  nameLong,
const string &  nameShort,
bool &  destination 
) [inline]

Definition at line 229 of file SSAHAMain.h.

00229                                                                          :
00230     CommandLineArg( nameLong, nameShort ), destination_( destination ) {}


Member Function Documentation

virtual bool CommandLineArgBool::isThisMe ( const string &  argName  )  [inline, virtual]

Reimplemented from CommandLineArg.

Definition at line 232 of file SSAHAMain.h.

References destination_, CommandLineArg::nameLong_, and CommandLineArg::nameShort_.

00233   { 
00234     if ( ( argName == nameLong_ ) || ( argName == nameShort_ ) )
00235     {
00236       destination_ = true;
00237       return true;
00238     } // ~if
00239     return false;
00240   } // ~grabNextArg

void CommandLineArgBool::addValue ( const string &  value  )  [inline, virtual]

Implements CommandLineArg.

Definition at line 242 of file SSAHAMain.h.

References destination_.

00243   {
00244     destination_ = atoi(value.c_str());
00245   }


Member Data Documentation

bool& CommandLineArgBool::destination_ [protected]

Definition at line 247 of file SSAHAMain.h.

Referenced by addValue(), and isThisMe().


The documentation for this class was generated from the following file:
Generated on Fri Dec 21 13:15:49 2007 for ssaha by  doxygen 1.5.2