gpstk::FileUtils Namespace Reference
[File and Directory Processing Utilities]


Detailed Description

These functions and macros help process files and directories.


Functions

int makeDir (const std::string &path, unsigned mode)
 Creates a hierarchy of directories rather than just one dir.
int makeDir (const char *path, unsigned mode)
 makeDir that takes a char* for an argument.
bool fileAccessCheck (const char *fname, std::ios::openmode mode=std::ios::in)
 Returns true if the file exists.
bool fileAccessCheck (const std::string &fname, std::ios::openmode mode=std::ios::in)


Function Documentation

bool fileAccessCheck const std::string &  fname,
std::ios::openmode  mode = std::ios::in
[inline]
 

Definition at line 142 of file FileUtils.hpp.

Referenced by FFIdentifier::FFIdentifier().

bool fileAccessCheck const char *  fname,
std::ios::openmode  mode = std::ios::in
[inline]
 

Returns true if the file exists.

Only readability is verified unless the user inputs the openmode of interest.

Parameters:
fname Name of the file to check
mode Mode of access to check (default is readable, std::ios::in)
Returns:
true if the file can be accessed

Definition at line 135 of file FileUtils.hpp.

int makeDir const char *  path,
unsigned  mode
[inline]
 

makeDir that takes a char* for an argument.

Parameters:
path the full path of the directory you want created
mode the permission of the new directory (like 0755)
Returns:
always 0

Definition at line 123 of file FileUtils.hpp.

int makeDir const std::string &  path,
unsigned  mode
[inline]
 

Creates a hierarchy of directories rather than just one dir.

This intentionally doesn't check the mkdir return codes because there is no difference between return codes for directories that already exist and error creating new ones.

Parameters:
path the full path of the directory you want created
mode the permission of the new directory (like 0755)
Returns:
always 0

Definition at line 88 of file FileUtils.hpp.

Referenced by FileFilterFrameWithHeader::writeFile(), and FileFilterFrame::writeFile().


Generated on Fri Dec 6 03:31:23 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1