Classes and methods related to low-level platform independent access to files on disk.
More...
Classes and methods related to low-level platform independent access to files on disk.
◆ AppendFileToDir()
std::string osmscout::AppendFileToDir |
( |
const std::string & |
dir, |
|
|
const std::string & |
file |
|
) |
| |
|
extern |
Append the filename 'name' to the directory name 'name' correctly adding directory delimiter if necessary.
Referenced by osmscout::TypeConfig::GetDatabaseFileFormatVersion(), osmscout::MapPainterQt::HasIcon(), osmscout::MapPainterSVG::HasIcon(), osmscout::MapPainterQt::HasPattern(), osmscout::oss::Parser::IMPORT(), osmscout::ost::Parser::IMPORT(), osmscout::BoundingBoxDataFile::Load(), osmscout::TextSearchIndex::Load(), osmscout::TypeDistributionDataFile::Load(), osmscout::TypeConfig::LoadFromDataFile(), osmscout::RoutingDatabase::Open(), osmscout::CoverageIndex::Open(), osmscout::CoordDataFile::Open(), osmscout::NumericIndex< N >::Open(), osmscout::AreaAreaIndex::Open(), osmscout::AreaNodeIndex::Open(), osmscout::WaterIndex::Open(), osmscout::RouteNodeDataFile::Open(), osmscout::AreaIndex::Open(), osmscout::OptimizeAreasLowZoom::Open(), osmscout::OptimizeWaysLowZoom::Open(), osmscout::DataFile< N >::Open(), and osmscout::TypeConfig::StoreToDataFile().
◆ BytesNeededToAddressFileData()
uint8_t osmscout::BytesNeededToAddressFileData |
( |
const std::string & |
filename | ) |
|
|
extern |
◆ ExistsInFilesystem()
bool osmscout::ExistsInFilesystem |
( |
const std::string & |
filename | ) |
|
|
extern |
Returns true of the given filename exists in the filesystem.
Else it returns false.
Note that this function returns, does not tell you anything about the type of the filesystem entry. It you still be a regular file, a directory, a pipe or something completely different.
Also not ethat there is no differenciation in error codes. If there was an error during access to the file entry while though the file entry does in fact exists, false ist still returned.
- Exceptions
-
Referenced by osmscout::LoadShaderSource(), and osmscout::ReadFile().
◆ GetDirectory()
std::string osmscout::GetDirectory |
( |
const std::string & |
file | ) |
|
|
extern |
◆ GetFileSize()
FileOffset osmscout::GetFileSize |
( |
const std::string & |
filename | ) |
|
|
extern |
◆ IsDirectory()
bool osmscout::IsDirectory |
( |
const std::string & |
filename | ) |
|
|
extern |
Returns true of the given filename points to a directory.
Else it returns false.
- Exceptions
-
IOException | if there was an error or if the function is not implemented. |
◆ RemoveFile()
bool osmscout::RemoveFile |
( |
const std::string & |
filename | ) |
|
|
extern |
◆ RenameFile()
bool osmscout::RenameFile |
( |
const std::string & |
oldFilename, |
|
|
const std::string & |
newFilename |
|
) |
| |
|
extern |