22 #ifndef TILE_IDENTIFIER_HPP 23 #define TILE_IDENTIFIER_HPP 51 static shared_ptr<TileIdentifier>
Create(
const string& url, shared_ptr<StylesheetManager>
StylesheetManager,
const shared_ptr<Configuration>&
config);
52 static shared_ptr<TileIdentifier>
CreateEmptyTID(
const string& stylesheetPath,
string styleSheetpath
path to the Stylesheet which should be used for rendering.
TileIdentifier(int x, int y, int zoom, string styleSheetpath, Format imageFormat)
Constructs a new TileIdentifier with the given parameters.
bool operator==(const TileIdentifier &a, const TileIdentifier &b)
Equals operator for two TileIdentifiers.
TESTABLE bool isDefaultIdentifier() const
Determine whether this is the Identifier for the default tile.
static const string FormatString[enumSize]
This file is part of alaCarte.
The StylesheetManager provides an interface to get arbitrary Stylesheets from the stylesheet director...
Format
Enumeration which contains all supported image formats.
std::ostream & operator<<(std::ostream &out, const TileIdentifier &ti)
toString method for TileIdentifier (overloading << operator).
TESTABLE const string & getImageFormatString() const
Returns the image Format of the Tile.
A TileIdentifier identifies a Tile.
TESTABLE int getY() const
Returns the y coordinate of the Tile.
int x
x coordinate of the Tile.
TESTABLE int getZoom() const
Returns the zoom level of the Tile.
std::size_t hash_value(const TileIdentifier &ti)
Returns a hash for the TileIdentifier.
TESTABLE bool isNoneDataIdentifier() const
TESTABLE const string & getStylesheetPath() const
Returns the path to the Stylesheet which should be used for rendering.
TESTABLE Format getImageFormat() const
Returns the image Format of the Tile.
int y
y coordinate of the Tile.
TESTABLE int getX() const
Returns the x coordinate of the Tile.
static int stringToInt(const char *c)
Converts the given char* to integer.
static const char * config
Option to get the configuration filename (type: string)
Format imageFormat
Format of the image.
Represents a set of options accessible via strings.
static shared_ptr< TileIdentifier > CreateEmptyTID(const string &stylesheetPath, TileIdentifier::Format format)
Return the TileIdentifier used for Tiles without data.
static shared_ptr< TileIdentifier > Create(const string &url, shared_ptr< StylesheetManager > StylesheetManager, const shared_ptr< Configuration > &config)
Constructs a new TileIdentifier with the given url.
int zoom
zoom level of the Tile.