// Composes object graph. Application(const char* stringPath, const char* elePath, OnError* errorCallback) : stringTable_(stringPath), geoStore_(stringTable_), srtmEleProvider_(elePath), flatEleProvider_(), quadKeyBuilder_(geoStore_, stringTable_) { registerDefaultBuilders(); }
// Composes object graph. Application(const char* stringPath, const char* dataPath, const char* elePath, OnError* errorCallback) : stringTable_(stringPath), inMemoryStore_(stringTable_), persistentStore_(dataPath, stringTable_), geoStore_(stringTable_), srtmEleProvider_(elePath), flatEleProvider_(), quadKeyBuilder_(geoStore_, stringTable_) { geoStore_.registerStore(InMemoryStorageKey, inMemoryStore_); geoStore_.registerStore(PersistentStorageKey, persistentStore_); registerDefaultBuilders(); }
// Composes object graph. Application(const char* stringPath, const char* dataPath, const char* elePath, OnError* errorCallback) : stringTable_(stringPath), geoStore_(stringTable_), srtmEleProvider_(elePath), flatEleProvider_(), quadKeyBuilder_(geoStore_, stringTable_) { geoStore_.registerStore(InMemoryStorageKey, std::shared_ptr<utymap::index::InMemoryElementStore>( new utymap::index::InMemoryElementStore(stringTable_))); geoStore_.registerStore(PersistentStorageKey, std::shared_ptr<utymap::index::PersistentElementStore>( new utymap::index::PersistentElementStore(dataPath, stringTable_))); registerDefaultBuilders(); }