HPCToolkit
FileUtil Namespace Reference

Functions

string basename (const char *fName)
 
string rmSuffix (const char *fName)
 
string dirname (const char *fName)
 
bool fnmatch (const std::vector< std::string > &patternVec, const char *string, int flags)
 
bool isReadable (const char *path)
 
bool isDir (const char *path)
 
int countChar (const char *path, char c)
 
void copy (const char *dst,...)
 
void move (const char *dst, const char *src)
 
int remove (const char *file)
 
int mkdir (const char *dir)
 
std::pair< string, bool > mkdirUnique (const char *dirnm)
 
const char * tmpname ()
 
std::string basename (const std::string &fname)
 
std::string rmSuffix (const std::string &fname)
 
std::string dirname (const std::string &fname)
 
static bool fnmatch (const std::string pattern, const char *string, int flags=0)
 
bool isReadable (const std::string &path)
 
bool isDir (const std::string &path)
 
void copy (const std::string &dst, const std::string &src)
 
void move (const std::string &dst, const std::string &src)
 
void mkdir (const std::string &dir)
 
std::pair< std::string, bool > mkdirUnique (const std::string &dirnm)
 

Function Documentation

◆ basename() [1/2]

std::string FileUtil::basename ( const std::string &  fname)
inline

Definition at line 74 of file FileUtil.hpp.

Here is the call graph for this function:

◆ basename() [2/2]

std::string FileUtil::basename ( const char *  fName)

Definition at line 90 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy() [1/2]

void FileUtil::copy ( const std::string &  dst,
const std::string &  src 
)
inline

Definition at line 164 of file FileUtil.hpp.

Here is the call graph for this function:

◆ copy() [2/2]

void FileUtil::copy ( const char *  dst,
  ... 
)

Definition at line 233 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ countChar()

int FileUtil::countChar ( const char *  path,
char  c 
)

Definition at line 194 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dirname() [1/2]

std::string FileUtil::dirname ( const std::string &  fname)
inline

Definition at line 96 of file FileUtil.hpp.

Here is the call graph for this function:

◆ dirname() [2/2]

std::string FileUtil::dirname ( const char *  fName)

Definition at line 134 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ fnmatch() [1/2]

static bool FileUtil::fnmatch ( const std::string  pattern,
const char *  string,
int  flags = 0 
)
inlinestatic

Definition at line 103 of file FileUtil.hpp.

Here is the call graph for this function:

◆ fnmatch() [2/2]

bool FileUtil::fnmatch ( const std::vector< std::string > &  patternVec,
const char *  string,
int  flags 
)

Definition at line 147 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ isDir() [1/2]

bool FileUtil::isDir ( const std::string &  path)
inline

Definition at line 142 of file FileUtil.hpp.

Here is the call graph for this function:

◆ isDir() [2/2]

bool FileUtil::isDir ( const char *  path)

Definition at line 182 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ isReadable() [1/2]

bool FileUtil::isReadable ( const std::string &  path)
inline

Definition at line 132 of file FileUtil.hpp.

Here is the call graph for this function:

◆ isReadable() [2/2]

bool FileUtil::isReadable ( const char *  path)

Definition at line 171 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ mkdir() [1/2]

void FileUtil::mkdir ( const std::string &  dir)
inline

Definition at line 191 of file FileUtil.hpp.

Here is the call graph for this function:

◆ mkdir() [2/2]

int FileUtil::mkdir ( const char *  dir)

Definition at line 289 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mkdirUnique() [1/2]

std::pair<std::string, bool> FileUtil::mkdirUnique ( const std::string &  dirnm)
inline

Definition at line 202 of file FileUtil.hpp.

Here is the call graph for this function:

◆ mkdirUnique() [2/2]

std::pair< std::string, bool > FileUtil::mkdirUnique ( const char *  dirnm)

Definition at line 364 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ move() [1/2]

void FileUtil::move ( const std::string &  dst,
const std::string &  src 
)
inline

Definition at line 174 of file FileUtil.hpp.

Here is the call graph for this function:

◆ move() [2/2]

void FileUtil::move ( const char *  dst,
const char *  src 
)

Definition at line 272 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ remove()

int FileUtil::remove ( const char *  file)

Definition at line 282 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ rmSuffix() [1/2]

std::string FileUtil::rmSuffix ( const std::string &  fname)
inline

Definition at line 85 of file FileUtil.hpp.

Here is the call graph for this function:

◆ rmSuffix() [2/2]

std::string FileUtil::rmSuffix ( const char *  fName)

Definition at line 121 of file FileUtil.cpp.

Here is the caller graph for this function:

◆ tmpname()

const char * FileUtil::tmpname ( )

Definition at line 418 of file FileUtil.cpp.

Here is the caller graph for this function: