general/util.h File Reference

#include <string>
#include <sigc++/signal.h>

Go to the source code of this file.


class  pos
struct  pos_cmp


#define nmin(a, b)   (((a)<(b)?(a):(b))
#define nmax(a, b)   (((a)>(b)?(a):(b))


int toint (char *s)
int toint (std::string s)
std::string tostr (long l)
std::string tostr (int i)
long tolong (char *s)
long tolong (std::string s)
std::string ncpy (int n, std::string s)
std::string split (std::string *parm, std::string txt)
std::string filename (std::string fname)
bool isfile (std::string fname)
void directory (std::string dir, sigc::signal< void, std::string > handler)

Define Documentation

#define nmax ( a,
 )     (((a)>(b)?(a):(b))

#define nmin ( a,
 )     (((a)<(b)?(a):(b))

Function Documentation

void directory ( std::string  dir,
sigc::signal< void, std::string >  handler 

std::string filename ( std::string  fname  ) 

fname  the filename possibly including ~

bool isfile ( std::string  fname  ) 

fname  check if this is a regular file

std::string ncpy ( int  n,
std::string  s 

std::string split ( std::string *  parm,
std::string  txt 

int toint ( std::string  s  ) 

int toint ( char *  s  ) 

long tolong ( std::string  s  ) 

long tolong ( char *  s  ) 

std::string tostr ( int  i  ) 

std::string tostr ( long  l  ) 

Generated on Tue Jan 1 17:30:01 2008 for general/util.h File Reference by  doxygen   Visit the project page on Logo