Utility functions for file handling. More...
Go to the source code of this file.
Classes | |
struct | _Wolframe::utils::FileType |
Get the file type. More... | |
Namespaces | |
_Wolframe | |
Toplevel Wolframe namespace. | |
_Wolframe::utils | |
Utility functions for parsing, handling files, allocating memory, etc. (implemented in the core library libwolframe) | |
Functions | |
std::string | _Wolframe::utils::resolvePath (const std::string &path) |
Remove .. and . from a path. More... | |
std::string | _Wolframe::utils::getFileExtension (const std::string &path) |
Get the extension of a file. More... | |
std::string | _Wolframe::utils::getFileStem (const std::string &path) |
Get the stem of a file. More... | |
std::string | _Wolframe::utils::getCanonicalPath (const std::string &path, const std::string &refPath) |
Get the path 'path' relative to 'refpath' if it is not absolute. More... | |
std::string | _Wolframe::utils::getParentPath (const std::string &path, unsigned int levels=1) |
Get the parent path of 'path' (skipping /./ as parent path unlike boost::filesystem does) More... | |
std::string | _Wolframe::utils::joinPath (const std::string &path, const std::string &item) |
Join path with an item of the path to a combined path. More... | |
bool | _Wolframe::utils::fileExists (const std::string &path) |
Returns true, if the file with path 'path' exists. More... | |
std::string | _Wolframe::utils::readSourceFileContent (const std::string &filename) |
Reading the content of a source file as one string in UTF-8 (with implicit conversion of other known unicode character encodings to UTF-8) More... | |
std::string | _Wolframe::utils::readBinaryFileContent (const std::string &filename) |
Reading the content of a file as one string without any conversions applied. More... | |
types::PropertyTree | _Wolframe::utils::readPropertyTreeFile (const std::string &filename) |
Reading the content of a source file as property tree (with property tree syntax) More... | |
types::PropertyTree | _Wolframe::utils::readXmlPropertyTreeFile (const std::string &filename) |
Reading the content of an XML source file as property tree (with property tree syntax) More... | |
types::PropertyTree | _Wolframe::utils::readInfoPropertyTreeFile (const std::string &filename) |
Reading the content of an Info format source file as property tree (with property tree syntax) More... | |
void | _Wolframe::utils::writeFile (const std::string &filename, const std::string &content) |
Writing a file. More... | |
FileType | _Wolframe::utils::getFileType (const std::string &filename) |
Utility functions for file handling.
Copyright © 2014 - Project Wolframe - All Rights Reserved