libosmscout
1.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
libosmscout
include
osmscout
io
File.h
Go to the documentation of this file.
1
#ifndef OSMSCOUT_UTIL_FILE_H
2
#define OSMSCOUT_UTIL_FILE_H
3
4
/*
5
This source is part of the libosmscout library
6
Copyright (C) 2009 Tim Teulings
7
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Lesser General Public
10
License as published by the Free Software Foundation; either
11
version 2.1 of the License, or (at your option) any later version.
12
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
*/
22
23
#include <string>
24
#include <vector>
25
26
#include <
osmscout/lib/CoreImportExport.h
>
27
28
#include <
osmscout/OSMScoutTypes.h
>
29
30
namespace
osmscout
{
31
32
39
47
extern
OSMSCOUT_API
FileOffset
GetFileSize
(
const
std::string& filename);
48
54
extern
OSMSCOUT_API
bool
RemoveFile
(
const
std::string& filename);
55
61
extern
OSMSCOUT_API
bool
RenameFile
(
const
std::string& oldFilename,
62
const
std::string& newFilename);
63
70
extern
OSMSCOUT_API
std::string
GetDirectory
(
const
std::string& file);
71
78
extern
OSMSCOUT_API
std::string
AppendFileToDir
(
const
std::string& dir,
const
std::string& file);
79
87
extern
OSMSCOUT_API
uint8_t
BytesNeededToAddressFileData
(
const
std::string& filename);
88
104
extern
OSMSCOUT_API
bool
ExistsInFilesystem
(
const
std::string& filename);
105
113
extern
OSMSCOUT_API
bool
IsDirectory
(
const
std::string& filename);
114
115
extern
OSMSCOUT_API
bool
ReadFile
(
const
std::string& filename, std::vector<char>& content);
116
}
117
118
#endif
CoreImportExport.h
OSMSCOUT_API
#define OSMSCOUT_API
Definition
CoreImportExport.h:45
OSMScoutTypes.h
osmscout::RemoveFile
OSMSCOUT_API bool RemoveFile(const std::string &filename)
osmscout::GetDirectory
OSMSCOUT_API std::string GetDirectory(const std::string &file)
osmscout::GetFileSize
OSMSCOUT_API FileOffset GetFileSize(const std::string &filename)
osmscout::BytesNeededToAddressFileData
OSMSCOUT_API uint8_t BytesNeededToAddressFileData(const std::string &filename)
osmscout::IsDirectory
OSMSCOUT_API bool IsDirectory(const std::string &filename)
osmscout::ExistsInFilesystem
OSMSCOUT_API bool ExistsInFilesystem(const std::string &filename)
osmscout::AppendFileToDir
OSMSCOUT_API std::string AppendFileToDir(const std::string &dir, const std::string &file)
osmscout::RenameFile
OSMSCOUT_API bool RenameFile(const std::string &oldFilename, const std::string &newFilename)
osmscout::FileOffset
uint64_t FileOffset
Definition
OSMScoutTypes.h:46
osmscout
Definition
Area.h:39
osmscout::ReadFile
OSMSCOUT_API bool ReadFile(const std::string &filename, std::vector< char > &content)
Generated by
1.17.0