Static Public Member Functions

gridripper::util::FileUtil Class Reference

File utility methods. More...

#include <FileUtil.h>

List of all members.

Static Public Member Functions

static string chopExtension (const string &fname)
 Gets the "base name" part of the file, without the extension.
static string extension (const string &fname)
 Gets the file extension.

Detailed Description

File utility methods.

Version:
0.5, 07/22/2008
Since:
GridRipper 0.5, 07/22/2008
Author:
Peter Csizmadia

Member Function Documentation

static string gridripper::util::FileUtil::chopExtension ( const string &  fname  )  [static]

Gets the "base name" part of the file, without the extension.

The extension is the suffix to the name containing a starting dot and ASCII letters and digits.

Parameters:
fname the file name
Returns:
the base name or the full name if no extension found
static string gridripper::util::FileUtil::extension ( const string &  fname  )  [static]

Gets the file extension.

The extension is the suffix to the name containing a starting dot and ASCII letters and digits.

Parameters:
fname the file name
Returns:
the extension or empty string if no extension found

The documentation for this class was generated from the following file: