Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsCache.FileCacheAtlas Class Reference

File cache atlas. More...

Inheritance diagram for OnlineMapsCache.FileCacheAtlas:
OnlineMapsCache.CacheAtlas< FileCacheItem >

Public Member Functions

void Add (OnlineMapsCache cache, OnlineMapsTile tile, byte[] bytes)
 Adds the tile to the cache.
 
void Add (OnlineMapsCache cache, OnlineMapsTile tile, OnlineMapsProvider.MapType mapType, byte[] bytes)
 Adds the tile to the cache.
 
string GetFullPath (OnlineMapsCache cache, string shortFilename)
 Gets the full path to the tile.
 
- Public Member Functions inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
 CacheAtlas ()
 Constructor.
 
bool Contains (string filename)
 Checks whether the atlas contains the specified file.
 
CreateItem (string filename, int size, long time)
 Creates a new item.
 
void DeleteOldItems (OnlineMapsCache cache)
 Deletes old items.
 
void Load (OnlineMapsCache cache)
 Loads the atlas from the cache.
 
void Save (OnlineMapsCache cache)
 Saves the atlas.
 

Static Public Attributes

const string AtlasName = "tilecacheatlas.dat"
 File cache atlas name.
 

Properties

override string atlasName [get]
 Gets the name of the atlas.
 
- Properties inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
string atlasName [get]
 Name of the atlas.
 
int size [get, protected set]
 Size of the atlas.
 

Additional Inherited Members

- Protected Attributes inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
int capacity
 Capacity of the atlas.
 
int count
 Count of items in the atlas.
 
T[] items
 Items of the atlas.
 
- Static Protected Attributes inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
const short ATLAS_VERSION
 Version of the atlas.
 

Detailed Description

File cache atlas.

Member Function Documentation

◆ Add() [1/2]

void OnlineMapsCache.FileCacheAtlas.Add ( OnlineMapsCache cache,
OnlineMapsTile tile,
byte[] bytes )

Adds the tile to the cache.

Parameters
cacheCache
tileTile
bytesBytes of tile

◆ Add() [2/2]

void OnlineMapsCache.FileCacheAtlas.Add ( OnlineMapsCache cache,
OnlineMapsTile tile,
OnlineMapsProvider.MapType mapType,
byte[] bytes )

Adds the tile to the cache.

Parameters
cacheCache
tileTile
mapTypeMap Type
bytesBytes of tile

◆ GetFullPath()

string OnlineMapsCache.FileCacheAtlas.GetFullPath ( OnlineMapsCache cache,
string shortFilename )

Gets the full path to the tile.

Parameters
cacheCache
shortFilenameShort filename without extension
Returns
Full path to the tile