SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::xbt::Path Class Reference

#include <file.hpp>

Public Member Functions

 Path (const char *path)
 
 Path (std::string path)
 
std::string getName ()
 Returns the full path name. More...
 
std::string getDirname ()
 Returns the directory component of a path (reimplementation of POSIX dirname) More...
 
std::string getBasename ()
 Returns the file component of a path (reimplementation of POSIX basename) More...
 

Constructor & Destructor Documentation

◆ Path() [1/2]

simgrid::xbt::Path::Path ( const char *  path)
inlineexplicit

◆ Path() [2/2]

simgrid::xbt::Path::Path ( std::string  path)
inlineexplicit

Member Function Documentation

◆ getName()

std::string simgrid::xbt::Path::getName ( )
inline

Returns the full path name.

◆ getDirname()

std::string simgrid::xbt::Path::getDirname ( )

Returns the directory component of a path (reimplementation of POSIX dirname)

◆ getBasename()

std::string simgrid::xbt::Path::getBasename ( )

Returns the file component of a path (reimplementation of POSIX basename)


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