File: middle.cpp

package info (click to toggle)
osm2pgsql 0.96.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,304 kB
  • sloc: cpp: 11,462; python: 543; sh: 98; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "middle.hpp"
#include "middle-pgsql.hpp"
#include "middle-ram.hpp"

#include <memory>

std::shared_ptr<middle_t> middle_t::create_middle(const bool slim)
{
     if(slim)
         return std::make_shared<middle_pgsql_t>();
     else
         return std::make_shared<middle_ram_t>();
}