paramxx  1.0.7
ParFilename Class Reference

#include <ParFilename.h>

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.

Constructor & Destructor Documentation

◆ ~ParFilename()

ParFilename::~ParFilename ( void  )
inline

destructor

◆ ParFilename() [1/2]

ParFilename::ParFilename ( )
inline

default constructor

◆ ParFilename() [2/2]

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

constructor

Member Function Documentation

◆ get_filename()

string ParFilename::get_filename ( void  )
inline

Get the parameter filename

◆ init_ParFilename()

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

Initialize the parameter

◆ parse_string()

vector< string > ParFilename::parse_string ( string &  str,
char  delimit 
)
static
Parameters
strthe string to be split.
delimiterthe delimit to split the string.

Splits the input line on the parameter delimiter.

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

Friends And Related Function Documentation

◆ operator<< [1/2]

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

This output operator outputs the contents of the object.

◆ operator<< [2/2]

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

This output operator outputs the contents of the object.


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