general/ File Reference

#include <sys/stat.h>
#include <sys/types.h>
#include "util.h"
#include <sstream>
#include <dirent.h>
#include "log.h"


#define DEBUG_ROUTINE   "util"


string split (string *parm, string txt)
string ncpy (int n, string s)
int toint (char *s)
int toint (std::string s)
std::string tostr (long i)
std::string tostr (int i)
long tolong (char *s)
long tolong (std::string s)
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 DEBUG_ROUTINE   "util"

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

string ncpy ( int  n,
string  s 

string split ( string *  parm,
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  i  ) 

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