C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Namespaces | Functions
path.cpp File Reference
#include "./path.h"
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <string>
Include dependency graph for path.cpp:

Go to the source code of this file.

Namespaces

 IoUtilities
 Contains utility classes helping to read and write streams.
 

Functions

CPP_UTILITIES_EXPORT std::string IoUtilities::fileName (const string &path)
 Returns the file name and extension of the specified path string. More...
 
CPP_UTILITIES_EXPORT std::string IoUtilities::directory (const string &path)
 Returns the directory of the specified path string (including trailing slash). More...
 
CPP_UTILITIES_EXPORT void IoUtilities::removeInvalidChars (std::string &fileName)
 Removes invalid characters from the specified fileName. More...
 
CPP_UTILITIES_EXPORT bool IoUtilities::settingsDirectory (std::string &result, std::string applicationDirectoryName, bool createApplicationDirectory)
 Locates a directory meant to store application settings. More...
 
CPP_UTILITIES_EXPORT std::list< std::string > IoUtilities::directoryEntries (const char *path, DirectoryEntryType types)
 Returns the names of the directory entries in the specified path with the specified types. More...