Miosix  2.0alpha1
miosix::PathResolution Class Reference

Public Member Functions

 PathResolution (const map< StringPart, intrusive_ref_ptr< FilesystemBase > > &fs)
 
ResolvedPath resolvePath (string &path, bool followLastSymlink)
 

Detailed Description

This class implements the path resolution logic

Constructor & Destructor Documentation

miosix::PathResolution::PathResolution ( const map< StringPart, intrusive_ref_ptr< FilesystemBase > > &  fs)
inline

Constructor

Parameters
fsmap of all mounted filesystems

Member Function Documentation

ResolvedPath miosix::PathResolution::resolvePath ( string &  path,
bool  followLastSymlink 
)

The main purpose of this class, resolve a path

Parameters
pathinout parameter with the path to resolve. The resolved path will be modified in-place in this string. The path must be absolute and start with a "/". The caller is responsible for that.
followLastSymlinkif true, follow last symlink
Returns
a resolved path

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