www.pudn.com > dstile-0.2.rar > TileAccessor.h
class TileAccessor {
public:
TileAccessor();
virtual ~TileAccessor();
public:
void SetPath(const string& path);
void SetExt(const string& ext) { m_ext = ext; }
void SetOutputFormat(const string& format, const vector &opts = vector());
public:
virtual void Write(int l, int x, int y, GDALDataset *t);
virtual GDALDataset* Read(int l, int x, int y, bool returnNullIfNoEnt = false);
public:
virtual string LocateTile(int l, int x, int y);
void SetL0TilesCount(const int x, const int y) { m_l0tx = x; m_l0ty = y; };
void SetWWCache(const bool mode) { wwcache=mode; };
protected:
GDALDriver *m_outDrv;
char **m_outDrvOpts;
string m_path;
string m_ext;
int m_l0tx, m_l0ty;
bool wwcache;
};