2009-02-15 13:51:07 +00:00
|
|
|
#include "osm.h"
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class dataset_deliverer
|
|
|
|
{
|
|
|
|
private:
|
2009-02-16 23:10:58 +00:00
|
|
|
static osm_dataset* dataset;
|
|
|
|
static std::string last_bbox;
|
2009-02-15 13:51:07 +00:00
|
|
|
|
|
|
|
public:
|
2009-02-16 23:10:58 +00:00
|
|
|
static osm_dataset *load_from_file(const string&,const string&);
|
|
|
|
static osm_dataset *load_from_url
|
|
|
|
(const string&,const string&,const string&);
|
2009-02-15 13:51:07 +00:00
|
|
|
|
2009-02-16 23:10:58 +00:00
|
|
|
static void release()
|
|
|
|
{
|
|
|
|
delete dataset;
|
|
|
|
}
|
2009-02-15 13:51:07 +00:00
|
|
|
};
|
|
|
|
|