FEDEM Solver  R8.0
Source code of the dynamics solver
Namespaces | Functions
FFaFilePath.H File Reference

Utilities for file path handling. More...

#include <string>
#include <vector>
Include dependency graph for FFaFilePath.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FFaFilePath
 Utilities for file path handling.
 

Functions

size_t FFaFilePath::checkName (char *thePath, size_t length)
 Converts file pathnames from UNIX to Windows syntax and vice versa. More...
 
std::string & FFaFilePath::checkName (std::string &thePath)
 C++ wrapper for FFaFilePath::checkName(char*,size_t). More...
 
std::string & FFaFilePath::unixStyle (std::string &thePath)
 Modify the given path to using UNIX-style path separators. More...
 
std::string FFaFilePath::unixStyle (const std::string &thePath)
 Return a copy of the given path with UNIX-style path separators. More...
 
bool FFaFilePath::hasPath (const std::string &fileName)
 Checks if the provided fileName has a path. More...
 
bool FFaFilePath::isRelativePath (const std::string &pathName)
 Determines if path is relative or absolute. More...
 
bool FFaFilePath::isExtension (const std::string &fileName, const std::string &ext)
 Checks if ext is the extension of fName. More...
 
std::string FFaFilePath::getPath (const std::string &fullPath, bool keepSlash=true)
 Returns the path part of fullPath. More...
 
std::string FFaFilePath::getFileName (const std::string &fullPath)
 Returns the file name part of fullPath. More...
 
std::string FFaFilePath::getExtension (const std::string &fileName)
 Returns the extension of fName. More...
 
std::string FFaFilePath::getBaseName (const std::string &fileName, bool removePath=false)
 Returns the file name without extension. More...
 
std::string FFaFilePath::appendFileNameToPath (const std::string &path, const std::string &fName)
 Appends fileName to path. More...
 
std::string & FFaFilePath::appendToPath (std::string &path, const std::string &fName)
 Appends fileName to path. More...
 
std::string & FFaFilePath::makeItAbsolute (std::string &fName, const std::string &path)
 Makes fileName an absolute pathname by prefixing it with absPath. More...
 
std::string & FFaFilePath::makeItRelative (std::string &fName, const std::string &path)
 Makes fileName a relative pathname with respect to absPath. More...
 
std::string & FFaFilePath::setPath (std::string &fName, const std::string &path)
 Replaces the current path in fileName with path. More...
 
char FFaFilePath::getPathSeparator ()
 Returns the path separator for this system. More...
 
std::string & FFaFilePath::addExtension (std::string &fileName, const std::string &ext)
 Adds ext to fileName, if not already present. More...
 
std::string & FFaFilePath::addExtension (std::string &fileName, const std::vector< std::string > &exts)
 Checks fName for existing extension in exts. More...
 
std::string FFaFilePath::getRelativeFilename (const std::string &currentDirectory, const std::string &absoluteFilename)
 Returns the relative path name with respect to an absolute path. More...
 
std::string FFaFilePath::distillName (const std::string &filePath, bool removePath=false)
 Checks for illegal characters in file names. More...
 

Detailed Description

Utilities for file path handling.