Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

rs::posix Namespace Reference

Here I place all POSIX stuff. More...


Functions

off_t getFileSize (const string &fname)
time_t getFileModTime (const string &fname)
void setFileModTime (const string &fname, time_t mtime)
bool fileExists (const string &fname)
string getcwd ()
 returns the full path name of the current working directory. More...

void create_directory (const string &dirname, bool throw_if_exists)
bool dirExists (const string &dname)
off_t getFileSize (const std::string &fname)
 gets the file size. More...

time_t getFileModTime (const std::string &fname)
 gets the file modification time. More...

void setFileModTime (const std::string &fname, time_t mtime)
 sets the file modification time. More...

bool fileExists (const std::string &fname)
 returns true if the file fname exists. More...

bool dirExists (const std::string &dname)
 returns true if the directory dname exists. More...

void create_directory (const std::string &dirname, bool throw_if_exists=false)
 create a directory. More...


Detailed Description

Here I place all POSIX stuff.

Function Documentation

off_t getFileSize const string &    fname
 

Definition at line 109 of file sys_dep.cpp.

time_t getFileModTime const string &    fname
 

Definition at line 118 of file sys_dep.cpp.

void setFileModTime const string &    fname,
time_t    mtime
 

Definition at line 127 of file sys_dep.cpp.

bool fileExists const string &    fname
 

Definition at line 140 of file sys_dep.cpp.

std::string getcwd  
 

returns the full path name of the current working directory.

Definition at line 153 of file sys_dep.cpp.

Referenced by ProgramInfo::setProgramPaths().

void create_directory const string &    dirname,
bool    throw_if_exists
 

Definition at line 172 of file sys_dep.cpp.

bool dirExists const string &    dname
 

Definition at line 182 of file sys_dep.cpp.

off_t getFileSize const std::string &    fname
 

gets the file size.

time_t getFileModTime const std::string &    fname
 

gets the file modification time.

void setFileModTime const std::string &    fname,
time_t    mtime
 

sets the file modification time.

bool fileExists const std::string &    fname
 

returns true if the file fname exists.

bool dirExists const std::string &    dname
 

returns true if the directory dname exists.

void create_directory const std::string &    dirname,
bool    throw_if_exists = false
 

create a directory.

Parameters:
dirname  name of directory to create
throw_if_exists  if true then throw an IOError when directory exists (defaults to false)


Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen