Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
file.h File Reference
#include <misc/gen/TStrings.h>
#include <misc/global.h>
Include dependency graph for file.h:

Go to the source code of this file.

Namespaces

namespace  sf
 

Functions

_MISC_FUNC std::string sf::getLine (std::istream &is)
 Return a line from the input stream.
 
_MISC_FUNC bool sf::fileExists (const char *path)
 Checks if the passed path exist (by doing an access() using F_OK).
 
bool sf::fileExists (const std::string &path)
 Checks if the passed path exist (by doing an access() using F_OK).
 
_MISC_FUNC std::string sf::fileBaseName (const std::string &path)
 Same as basename() but using a std::string.
 
_MISC_FUNC std::string sf::fileDirName (const std::string &path)
 Same as dirname() but using a std::string.
 
_MISC_FUNC bool sf::fileUnlink (const std::string &path)
 Same as unlink() but using a std::string.
 
_MISC_FUNC bool sf::fileRename (const std::string &old_path, const std::string &new_path)
 Same as rename() but using a std::string.
 
_MISC_FUNC bool sf::findFiles (strings &files, const std::string &wildcard)
 Finds the files using the passed wildcard.
 
_MISC_FUNC std::string::value_type sf::getDirectorySeparator ()
 Returns OS dependent directory separation character.
 
_MISC_FUNC std::string sf::getDynamicLibraryExtension ()
 Returns OS dependent dynamic library extension.
 
_MISC_FUNC std::string sf::getTemporaryDirectory ()
 Returns the temporary directory.
 
_MISC_FUNC std::string sf::getWorkingDirectory ()
 Returns the working directory.
 
_MISC_FUNC std::string sf::getExecutableFilepath ()
 Returns the executable filepath.
 
_MISC_FUNC std::string sf::getExecutableDirectory ()
 Returns the executable directory.
 
_MISC_FUNC std::string sf::getExecutableName ()
 Returns the executable name.