general/util.h File Reference

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

Go to the source code of this file.

Classes

class  pos
struct  pos_cmp

Defines

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

Functions

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  ) 

Parameters:
fname  the filename possibly including ~

bool isfile ( std::string  fname  ) 

Parameters:
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 SourceForge.net Logo