os Namespace Reference

Functions

std::string standardPath (const std::string &inPath)
std::string getExtension (const std::string &path)
std::string getFilenameFromPath (const std::string &path)
std::string stripFilename (const std::string &filename)
std::string stripExtension (const std::string &filename)

Detailed Description

General utility functions for OS-related tasks


Function Documentation

std::string os::getExtension ( const std::string path  )  [inline]

Return the extension for the given path, which is equal to the characters following the final period. If there is no period in the given string the full string will be returned

Definition at line 61 of file path.h.

Referenced by MatchFileExtension< Functor >::operator()().

std::string os::getFilenameFromPath ( const std::string path  )  [inline]

Return the filename of the given path, which is equal to the characters following the final slash. If there is no slash in the given string the full string will be returned

Definition at line 70 of file path.h.

std::string os::standardPath ( const std::string inPath  )  [inline]

Convert the slashes in a path to forward-slashes

Definition at line 44 of file path.h.

References pos, and string.

Referenced by EModel::modelChanged().

std::string os::stripExtension ( const std::string filename  )  [inline]

Will cut away the characters following the final dot.

Parameters:
filename The filename to extract the basename from.
Returns:
The filename without extension

Definition at line 88 of file path.h.

References pos.

std::string os::stripFilename ( const std::string filename  )  [inline]

Return the path up to the character before the last / of the given filename. If there is no slash in the given string the full string will be returned

Definition at line 78 of file path.h.


Generated by  doxygen 1.6.2