Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

IntParam Class Reference

#include <paramproc.h>

Inheritance diagram for IntParam:

Inheritance graph
[legend]
Collaboration diagram for IntParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IntParam (const char *key, int argc, const char *const argv[])
bool found () const
 operator int () const

Private Types

enum  Type {
  NOPARAM, BOOL, INT, UNSIGNED,
  DOUBLE, STRING
}

Private Member Functions

bool on () const
int getInt () const
unsigned getUnsigned () const
double getDouble () const
const char * getString () const

Member Enumeration Documentation

enum Param::Type [inherited]
 

Enumeration values:
NOPARAM 
BOOL 
INT 
UNSIGNED 
DOUBLE 
STRING 

Definition at line 79 of file paramproc.h.


Constructor & Destructor Documentation

IntParam::IntParam const char *  key,
int  argc,
const char *const  argv[]
[inline]
 

Definition at line 146 of file paramproc.h.

References Param::INT.

00147     : Param(key,Param::INT,argc,argv) {}


Member Function Documentation

bool IntParam::found  )  const [inline]
 

Reimplemented from Param.

Definition at line 148 of file paramproc.h.

References Param::found().

Referenced by parquetfp::Command_Line::Command_Line().

00148 { return Param::found();   }

Here is the call graph for this function:

double Param::getDouble  )  const [inherited]
 

Definition at line 151 of file paramproc.cxx.

References abkfatal.

Referenced by DoubleParam::found(), and DoubleParam::operator double().

00152 { 
00153    abkfatal(_pt==DOUBLE," Parameter is not DOUBLE "); 
00154    abkfatal(found(),
00155       " DOUBLE parameter not found: you need to check for this first\n");
00156    return _d;
00157 }

int Param::getInt  )  const [inherited]
 

Definition at line 136 of file paramproc.cxx.

References abkfatal.

Referenced by operator int().

00137 { 
00138    abkfatal(_pt==INT," Parameter is not INT ");
00139    abkfatal(found()," Parameter not found: you need to check for this first\n");
00140    return _i;
00141 }

const char * Param::getString  )  const [inherited]
 

Definition at line 159 of file paramproc.cxx.

References abkfatal.

Referenced by StringParam::found(), and StringParam::operator const char *().

00160 { 
00161    abkfatal(_pt==STRING," Parameter is not STRING"); 
00162    abkfatal(found(),
00163       " STRING parameter not found: you need to check for this first\n");
00164    return _s;
00165 }

unsigned Param::getUnsigned  )  const [inherited]
 

Definition at line 143 of file paramproc.cxx.

References Param::_pt, Param::_u, abkfatal, Param::found(), and Param::UNSIGNED.

Referenced by UnsignedParam::found(), and UnsignedParam::operator unsigned().

00144 { 
00145    abkfatal(_pt==UNSIGNED," Parameter is not UNSIGNED "); 
00146    abkfatal(found(),
00147       " UNSIGNED Parameter not found: you need to check for this first\n");
00148    return _u;
00149 }

Here is the call graph for this function:

bool Param::on  )  const [inherited]
 

Definition at line 130 of file paramproc.cxx.

References abkfatal.

00131 { 
00132   abkfatal(found()," Parameter not found: you need to check for this first\n");
00133   return _on;
00134 }

IntParam::operator int  )  const [inline]
 

Definition at line 149 of file paramproc.h.

References Param::getInt().

00149 { return getInt();  }

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Mon Apr 25 01:14:25 2005 for Parquete by doxygen 1.3.2