Classes | |
class | Util::Getopt |
Parse the command line options of a program. More... | |
Functions | |
bool | fileExists (const std::string &path, bool ct) |
Test if a file exists. | |
std::string | strError () |
Get a system error message and the error code. See strerror(2). | |
std::string | dirname (const std::string &path) |
Get the directory component from the path string. See dirname(3). | |
std::string | basename (const std::string &path, bool delsuffix) |
Get the filename component from the path string. See basename(3). If the delsuffix parameter is true, the suffix will be removed. | |
std::string | suffix (const std::string &path) |
Get the suffix from the path string. Normally, the suffix is the substring of the basename of path from the last '.' to the end of the string. | |
bool | strtol (const char *nptr, long &n) |
Convert a C string to a long value, which is returned in n. Returns true if the conversion is successful, else false. n is not modified if the conversion is unsuccessful. See strtol(2). |
|
Test if a file exists.
|