2009-02-15 14:51:07 +01:00
|
|
|
#include "osm.h"
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class dataset_deliverer
|
|
|
|
{
|
|
|
|
private:
|
2009-02-17 00:10:58 +01:00
|
|
|
static osm_dataset* dataset;
|
|
|
|
static std::string last_bbox;
|
2009-02-15 14:51:07 +01:00
|
|
|
|
|
|
|
public:
|
2009-02-17 00:10:58 +01: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 14:51:07 +01:00
|
|
|
|
2009-02-17 00:10:58 +01:00
|
|
|
static void release()
|
|
|
|
{
|
|
|
|
delete dataset;
|
|
|
|
}
|
2009-02-15 14:51:07 +01:00
|
|
|
};
|
|
|
|
|