![]() |
Online Maps
v3
|
File cache atlas More...
Public Member Functions | |
void | Add (OnlineMapsCache cache, OnlineMapsTile tile, byte[] bytes) |
Adds the tile to the cache. More... | |
void | Add (OnlineMapsCache cache, OnlineMapsTile tile, OnlineMapsProvider.MapType mapType, byte[] bytes) |
Adds the tile to the cache. More... | |
override FileCacheItem | CreateItem (string filename, int size, long time) |
Creates a new item. More... | |
override void | DeleteOldItems (OnlineMapsCache cache) |
Deletes old items. More... | |
string | GetFullPath (OnlineMapsCache cache, string shortFilename) |
Gets the full path to the tile. More... | |
![]() | |
CacheAtlas () | |
Constructor More... | |
bool | Contains (string filename) |
Checks whether the atlas contains the specified file. More... | |
void | Load (OnlineMapsCache cache) |
Loads the atlas from the cache. More... | |
void | Save (OnlineMapsCache cache) |
Saves the atlas. More... | |
Static Public Attributes | |
const string | AtlasName = "tilecacheatlas.dat" |
File cache atlas name More... | |
Properties | |
override string | atlasName [get] |
Gets the name of the atlas. More... | |
![]() | |
abstract string | atlasName [get] |
Name of the atlas. More... | |
int | size [get, protected set] |
Size of the atlas. More... | |
Additional Inherited Members | |
![]() | |
int | capacity |
Capacity of the atlas. More... | |
int | count |
Count of items in the atlas. More... | |
T[] | items |
Items of the atlas. More... | |
![]() | |
const short | ATLAS_VERSION |
Version of the atlas. More... | |
File cache atlas
void OnlineMapsCache.FileCacheAtlas.Add | ( | OnlineMapsCache | cache, |
OnlineMapsTile | tile, | ||
byte[] | bytes | ||
) |
Adds the tile to the cache.
cache | Cache |
tile | Tile |
bytes | Bytes of tile |
void OnlineMapsCache.FileCacheAtlas.Add | ( | OnlineMapsCache | cache, |
OnlineMapsTile | tile, | ||
OnlineMapsProvider.MapType | mapType, | ||
byte[] | bytes | ||
) |
Adds the tile to the cache.
cache | Cache |
tile | Tile |
mapType | Map Type |
bytes | Bytes of tile |
|
virtual |
Creates a new item.
filename | Name of the file |
size | Size of the file |
time | Creation time |
Implements OnlineMapsCache.CacheAtlas< FileCacheItem >.
|
virtual |
string OnlineMapsCache.FileCacheAtlas.GetFullPath | ( | OnlineMapsCache | cache, |
string | shortFilename | ||
) |
Gets the full path to the tile.
cache | Cache |
shortFilename | Short filename without extension |
|
static |
File cache atlas name
|
getprotected |
Gets the name of the atlas.