ParFilename Class Reference

#include <ParFilename.h>

List of all members.

Public Member Functions

 ~ParFilename (void)
 ParFilename ()
 ParFilename (int argc, char **argv, const char *file=NULL) throw ( ParFileException )
string get_filename (void)
void init_ParFilename (int argc, char **argv, const char *file=NULL) throw ( ParFileException )
void print (ostream &os)

Static Public Member Functions

static vector< string > parse_string (string &str, char delimit)

Friends

ostream & operator<< (ostream &os, ParFilename &a)
ostream & operator<< (ostream &os, ParFilename *a)


Detailed Description

Find the parameter file. If PFILE=foo is set at the command line then the file `foo' shall be the file to be opened. PFILE will overide even if a specific file to the function (3rd argument) Parfile is set. The class loops over the PFILES, UPARM environment variables to determine then the .par and extension to locate the parameter file.

Definition at line 44 of file ParFilename.h.


Constructor & Destructor Documentation

ParFilename::~ParFilename ( void   )  [inline]

destructor

Definition at line 69 of file ParFilename.h.

ParFilename::ParFilename (  )  [inline]

default constructor

Definition at line 74 of file ParFilename.h.

ParFilename::ParFilename ( int  argc,
char **  argv,
const char *  file = NULL 
) throw ( ParFileException )

constructor

Definition at line 48 of file ParFilename.cc.


Member Function Documentation

string ParFilename::get_filename ( void   )  [inline]

Get the parameter filename

Definition at line 85 of file ParFilename.h.

Referenced by ParFile::get_filename().

void ParFilename::init_ParFilename ( int  argc,
char **  argv,
const char *  file = NULL 
) throw ( ParFileException )

Initialize the parameter

Definition at line 245 of file ParFilename.cc.

vector< string > ParFilename::parse_string ( string &  str,
char  delimit 
) [static]

Parameters:
str the string to be split.
delimiter the delimit to split the string.
Splits the input line on the parameter delimiter.

Returns:
Vector of tokens, one for each delimiter delimited field.

Definition at line 315 of file ParFilename.cc.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
ParFilename a 
) [friend]

This output operator outputs the contents of the object.

Definition at line 49 of file ParFilename.h.

ostream& operator<< ( ostream &  os,
ParFilename a 
) [friend]

This output operator outputs the contents of the object.

Definition at line 57 of file ParFilename.h.


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

Generated on Thu Oct 2 17:54:25 2008 for paramxx by  doxygen 1.5.6