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

parseutil.h File Reference

#include <string>
#include <exception>
#include <vector>
#include "common.h"

Go to the source code of this file.Go to the history log for this file.

Functions

vector< string > unpackString (const string &src, const string &delimiters)
bool stringToBool (const string &s) throw (exception)
size_t stringToSize_t (const string &s) throw (exception)
int stringToInt (const string &s) throw (exception)
unsigned int stringToUInt (const string &s) throw (exception)
long stringToLong (const string &s) throw (exception)
unsigned long stringToULong (const string &s) throw (exception)
unsigned long long stringToULongLong (const string &s) throw (exception)
double stringToDouble (const string &s) throw (exception)
size_t getArgUniqueIndex (string argname, bool canBeLast, int argc, const char *argv[]) throw (exception)
double getUniqueDoubleArg (string argname, int argc, const char *argv[], double minValue, double maxValue) throw (exception)
int getUniqueIntArg (string argname, int argc, const char *argv[], int minValue, int maxValue) throw (exception)
string getUniqueStringArg (string argname, int argc, const char *argv[]) throw (exception)
bool argInCmdLine (string argumentName, int argc, const char *argv[])

Variables

 BOREALIS_NAMESPACE_BEGIN
 BOREALIS_NAMESPACE_END


Function Documentation

bool argInCmdLine string  argumentName,
int  argc,
const char *  argv[]
 

size_t getArgUniqueIndex string  argname,
bool  canBeLast,
int  argc,
const char *  argv[]
throw (exception)
 

double getUniqueDoubleArg string  argname,
int  argc,
const char *  argv[],
double  minValue,
double  maxValue
throw (exception)
 

int getUniqueIntArg string  argname,
int  argc,
const char *  argv[],
int  minValue,
int  maxValue
throw (exception)
 

string getUniqueStringArg string  argname,
int  argc,
const char *  argv[]
throw (exception)
 

bool stringToBool const string &  s  )  throw (exception)
 

double stringToDouble const string &  s  )  throw (exception)
 

int stringToInt const string &  s  )  throw (exception)
 

long stringToLong const string &  s  )  throw (exception)
 

size_t stringToSize_t const string &  s  )  throw (exception)
 

unsigned int stringToUInt const string &  s  )  throw (exception)
 

unsigned long stringToULong const string &  s  )  throw (exception)
 

unsigned long long stringToULongLong const string &  s  )  throw (exception)
 

vector<string> unpackString const string &  src,
const string &  delimiters
 


Variable Documentation

BOREALIS_NAMESPACE_BEGIN
 

BOREALIS_NAMESPACE_END
 


Generated on Fri Nov 12 15:15:22 2004 for Borealis by doxygen 1.3.8