diff options
Diffstat (limited to 'src/imports/location/tilespec.h')
-rw-r--r-- | src/imports/location/tilespec.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/imports/location/tilespec.h b/src/imports/location/tilespec.h new file mode 100644 index 00000000..bbc1edf0 --- /dev/null +++ b/src/imports/location/tilespec.h @@ -0,0 +1,27 @@ +#ifndef TILESPEC_H +#define TILESPEC_H + +class TileSpec +{ +public: + TileSpec(); + TileSpec(int zoom, int x, int y); + + void setZoom(int zoom); + int zoom() const; + + void setX(int x); + int x() const; + + void setY(int y); + int y() const; + + bool operator < (const TileSpec &rhs) const; + +private: + int zoom_; + int x_; + int y_; +}; + +#endif |