#include <sys/stat.h>
#include <sys/types.h>
#include "util.h"
#include <sstream>
#include <dirent.h>
#include "log.h"
Defines | |
#define | DEBUG_ROUTINE "util" |
Functions | |
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 DEBUG_ROUTINE "util" |
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/util.cc File Reference by
Visit the project page on