SimGrid  3.21
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 get_name ()
 Returns the full path name. More...
 
std::string get_dir_name ()
 Returns the directory component of a path (reimplementation of POSIX dirname) More...
 
std::string get_base_name ()
 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

◆ get_name()

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

Returns the full path name.

◆ get_dir_name()

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

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

◆ get_base_name()

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

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


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