Online Maps  v3
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. 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...
 
- Public Member Functions inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
 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...
 
- Properties inherited from OnlineMapsCache.CacheAtlas< FileCacheItem >
abstract string atlasName [get]
 Name of the atlas. More...
 
int size [get, protected set]
 Size of the atlas. More...
 

Additional Inherited Members

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

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

◆ CreateItem()

override FileCacheItem OnlineMapsCache.FileCacheAtlas.CreateItem ( string  filename,
int  size,
long  time 
)
virtual

Creates a new item.

Parameters
filenameName of the file
sizeSize of the file
timeCreation time
Returns
Item

Implements OnlineMapsCache.CacheAtlas< FileCacheItem >.

◆ DeleteOldItems()

override void OnlineMapsCache.FileCacheAtlas.DeleteOldItems ( OnlineMapsCache  cache)
virtual

Deletes old items.

Parameters
cacheCache

Implements OnlineMapsCache.CacheAtlas< FileCacheItem >.

◆ 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

Member Data Documentation

◆ AtlasName

const string OnlineMapsCache.FileCacheAtlas.AtlasName = "tilecacheatlas.dat"
static

File cache atlas name

Property Documentation

◆ atlasName

override string OnlineMapsCache.FileCacheAtlas.atlasName
getprotected

Gets the name of the atlas.