futils.hpp File Reference

Basic file utility functions required by Exiv2. More...

#include "exv_conf.h"
#include <string>

Include dependency graph for futils.hpp:

Include dependency graph

Namespaces

namespace  Exiv2

Functions

EXIV2API bool fileExists (const std::string &path, bool ct=false)
 Test if a file exists.
EXIV2API std::string strError ()
 Return a system error message and the error code (errno). See strerror(3).

Detailed Description

Basic file utility functions required by Exiv2.

Version:
Rev
1937
Author:
Andreas Huggel (ahu) ahuggel@gmx.net
Date:
12-Dec-03, ahu: created
02-Apr-05, ahu: moved to Exiv2 namespace

Function Documentation

EXIV2API bool fileExists const std::string &  path,
bool  ct = false
 

Test if a file exists.

Parameters:
path Name of file to verify.
ct Flag to check if path is a regular file.
Returns:
true if path exists and, if ct is set, is a regular file, else false.
Note:
The function calls stat() test for path and its type, see stat(2). errno is left unchanged in case of an error.


Generated on Thu Dec 31 03:57:41 2009 for Exiv2 by  doxygen 1.3.9.1