A Discrete-Event Network Simulator
API
ns3::SystemPath Namespace Reference

Namespace for various file and directory path functions. More...

Functions

std::string Append (std::string left, std::string right)
 Join two file system path elements. More...
 
std::string CreateValidSystemPath (const std::string path)
 Replace incompatible characters in a path, to get a path compatible with different file systems. More...
 
std::string Dirname (std::string path)
 Get the directory path for a file. More...
 
bool Exists (const std::string path)
 Check if a path exists. More...
 
std::string FindSelfDirectory ()
 Get the file system path to the current executable. More...
 
std::string Join (std::list< std::string >::const_iterator begin, std::list< std::string >::const_iterator end)
 Join a list of file system path directories into a single file system path. More...
 
void MakeDirectories (std::string path)
 Create all the directories leading to path. More...
 
std::string MakeTemporaryDirectoryName ()
 Get the name of a temporary directory. More...
 
std::list< std::string > ReadFiles (std::string path)
 Get the list of files located in a file system directory. More...
 
std::list< std::string > Split (std::string path)
 Split a file system path into directories according to the local path separator. More...
 

Detailed Description

Namespace for various file and directory path functions.