From abafb52f37beb5659efc2105ccd1568e1f754898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 4 Dec 2014 18:29:42 +0100 Subject: make most headers private --- include/mbgl/map/tile_data.hpp | 88 ------------------------------------------ 1 file changed, 88 deletions(-) delete mode 100644 include/mbgl/map/tile_data.hpp (limited to 'include/mbgl/map/tile_data.hpp') diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp deleted file mode 100644 index 1ae215b204..0000000000 --- a/include/mbgl/map/tile_data.hpp +++ /dev/null @@ -1,88 +0,0 @@ -#ifndef MBGL_MAP_TILE_DATA -#define MBGL_MAP_TILE_DATA - -#include -#include -#include - -#include -#include - -#include -#include -#include -#include -#include - -namespace uv { -class worker; -} - -namespace mbgl { - -class Map; -class FileSource; -class Painter; -class SourceInfo; -class StyleLayer; -class Request; - -class TileData : public std::enable_shared_from_this, - private util::noncopyable { -public: - struct exception : std::exception {}; - struct geometry_too_long_exception : exception {}; - -public: - typedef util::ptr Ptr; - - enum class State { - invalid, - initial, - loading, - loaded, - parsed, - obsolete - }; - -public: - TileData(Tile::ID const& id, const SourceInfo&); - ~TileData(); - - void request(uv::worker&, FileSource&, float pixelRatio, std::function callback); - void reparse(uv::worker&, std::function callback); - void cancel(); - const std::string toString() const; - - inline bool ready() const { - return state == State::parsed; - } - - // Override this in the child class. - virtual void parse() = 0; - virtual void render(Painter &painter, util::ptr layer_desc, const mat4 &matrix) = 0; - virtual bool hasData(StyleLayer const& layer_desc) const = 0; - - -public: - const Tile::ID id; - const std::string name; - std::atomic state; - -public: - const SourceInfo& source; - -protected: - std::unique_ptr req; - std::string data; - - // Contains the tile ID string for painting debug information. - DebugFontBuffer debugFontBuffer; - -public: - DebugBucket debugBucket; -}; - -} - -#endif -- cgit v1.2.1