44 Job(
const shared_ptr<MetaIdentifier>&
mid,
45 const shared_ptr<Configuration>&
config,
46 const shared_ptr<RequestManager>&
manager,
47 const shared_ptr<RenderCanvas>&
canvas);
51 void addRequest(
const shared_ptr<HttpRequest>& req,
const shared_ptr<TileIdentifier>&
id)
70 shared_ptr<MetaIdentifier>
mid;
74 std::vector<shared_ptr<Tile>>
tiles;
75 boost::unordered_map<TileIdentifier, std::list<shared_ptr<HttpRequest>>>
requests;
const shared_ptr< MetaIdentifier > & getIdentifier()
void addRequest(const shared_ptr< HttpRequest > &req, const shared_ptr< TileIdentifier > &id)
shared_ptr< Statistic::JobMeasurement > measurement
used to generate statistics
std::vector< shared_ptr< Tile > > tiles
initialized by initTiles
A Stylesheet parses a given MapCSS Stylesheet file and stores the defined rules.
TESTABLE FixedRect computeRect(const shared_ptr< TileIdentifier > &ti)
Computes an rectangle for the given TileIdentifier.
shared_ptr< RenderCanvas > canvas
supplied by worker thread
boost::unordered_map< TileIdentifier, std::list< shared_ptr< HttpRequest > > > requests
Abstract Class which computes Tiles by a given TileIdentifier.
TESTABLE shared_ptr< Tile > computeEmpty()
Computes an empty Tile.
shared_ptr< MetaIdentifier > mid
Represents a set of options accessible via strings.
void process()
Computes a all tiles contained in the MetaIdentifier.
shared_ptr< Configuration > config
shared_ptr< RequestManager > manager
RequestManager which holds all important components.
Job(const shared_ptr< MetaIdentifier > &mid, const shared_ptr< Configuration > &config, const shared_ptr< RequestManager > &manager, const shared_ptr< RenderCanvas > &canvas)
Creates a new Job and sets the RequestManager.
bool initTiles()
Inits the internal list of tiles that are part of the MetaTile.