PIRL  PIRL++

Files.hh File Reference

#include <string>

Include dependency graph for Files.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PIRL

Functions

bool PIRL::file_exists (const std::string &pathname)
 Test if a file exists at a pathname.
bool PIRL::file_is_readable (const std::string &pathname)
 Test if a file at a pathname is readable.
bool PIRL::file_is_writeable (const std::string &pathname)
 Test if a file at a pathname is writeable.
bool PIRL::file_is_normal (const std::string &pathname)
 Test if a file at a pathname is a normal file.
bool PIRL::file_is_directory (const std::string &pathname)
 Test if a file at a pathname is a directory.
bool PIRL::file_is_link (const std::string &pathname)
 Test if a file at a pathname is a link file.
off_t PIRL::file_size (const std::string &pathname)
 Get the size of a file.
bool PIRL::file_is_absolute (const std::string &pathname)
 Test if a pathname is an absolute pathname.
std::string & PIRL::clean_pathname (std::string &pathname)
 Clean a pathname of redundant segments.
std::string PIRL::file_pathname (const std::string &filename)
 Get the full pathname for a filename.
std::string PIRL::file_pathname (const std::string &directory, const std::string &filename)
 Get the full pathname for a filename.
std::string PIRL::CWD ()
 Get the current working directory of the process.
std::string PIRL::file_directory (const std::string &pathname)
 Get the leading directory portion of a pathname.
std::string PIRL::file_directory_pathname (const std::string &pathname)
 Get the leading directory pathname portion of a pathname.
std::string PIRL::file_name (const std::string &pathname)
 Get the final name portion of a pathname.
std::string PIRL::file_basename (const std::string &pathname)
 Get the basename of a file's pathname.
std::string PIRL::file_extension (const std::string &pathname)
 Get a file's extension.
std::string PIRL::home_directory_pathname ()
 Get the user's home directory pathname.
std::string PIRL::username ()
 Get the effective username.
unsigned int PIRL::UID ()
 Get the effective user ID.
unsigned int PIRL::GID ()
 Get the effective group ID.
std::string PIRL::hostname ()
 Get the name of the host system.

Variables

const char * PIRL::Files_ID
 Module identification name with source code version and date.
const char PIRL::FILE_PATHNAME_DELIMITER
 Host filesystem pathname delimiter ('/').
const char PIRL::FILE_EXTENSION_DELIMITER
 Filename extension delimiter ('.').


Generated on Mon Oct 26 17:02:28 2009 for PIRL++ by  doxygen 1.4.7