libosmscout 0.1
Loading...
Searching...
No Matches
File.cpp File Reference
#include <cstdio>
#include <filesystem>
#include <osmscout/io/File.h>
#include <osmscout/util/Exception.h>
#include <osmscout/util/Number.h>
#include <osmscout/log/Logger.h>

Namespaces

namespace  osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Functions

std::string osmscout::AppendFileToDir (const std::string &dir, const std::string &file)
 Append the filename 'name' to the directory name 'name' correctly adding directory delimiter if necessary.
 
uint8_t osmscout::BytesNeededToAddressFileData (const std::string &filename)
 Number of bytes needed to address the complete content of the given file.
 
bool osmscout::ExistsInFilesystem (const std::string &filename)
 Returns true of the given filename exists in the filesystem.
 
std::string osmscout::GetDirectory (const std::string &file)
 Return everything (including the delimiter) before the last path delimiter.
 
FileOffset osmscout::GetFileSize (const std::string &filename)
 Return the size of the file in the parameter size.
 
bool osmscout::IsDirectory (const std::string &filename)
 Returns true of the given filename points to a directory.
 
bool osmscout::ReadFile (const std::string &filename, std::vector< char > &content)
 
bool osmscout::RemoveFile (const std::string &filename)
 Deletes the given file.
 
bool osmscout::RenameFile (const std::string &oldFilename, const std::string &newFilename)
 Rename a file.