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

StringParam Class Reference

#include <paramproc.h>

Inheritance diagram for StringParam:

Inheritance graph
[legend]
Collaboration diagram for StringParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StringParam (const char *key, int argc, const char *const argv[])
bool found () const
 operator const char * () 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

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

Definition at line 168 of file paramproc.h.

References Param::STRING.

00169     : Param(key,Param::STRING,argc,argv) {}


Member Function Documentation

bool StringParam::found  )  const [inline]
 

Reimplemented from Param.

Definition at line 170 of file paramproc.h.

References Param::found(), and Param::getString().

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

00171           { return Param::found() && strcmp(getString(),"Uninitialized"); }

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 IntParam::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 found(), and 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 }

StringParam::operator const char *  )  const [inline]
 

Definition at line 172 of file paramproc.h.

References Param::getString().

00172 { return getString();  }

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:15:50 2005 for Parquete by doxygen 1.3.2