From df3bdccb346f8e25867906effb2e71055e77d367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 15 Apr 2014 17:16:50 -0400 Subject: [PATCH] don't force settings object to implement anything --- include/llmr/llmr.hpp | 1 + include/llmr/map/settings.hpp | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/llmr/llmr.hpp b/include/llmr/llmr.hpp index 2d9b46b9c..88d20d268 100644 --- a/include/llmr/llmr.hpp +++ b/include/llmr/llmr.hpp @@ -2,5 +2,6 @@ #define LLMR_MAIN #include "map/map.hpp" +#include "map/settings.hpp" #endif diff --git a/include/llmr/map/settings.hpp b/include/llmr/map/settings.hpp index 31f7ed5bd..01b0e7a02 100644 --- a/include/llmr/map/settings.hpp +++ b/include/llmr/map/settings.hpp @@ -7,11 +7,12 @@ namespace llmr { class Settings : private util::noncopyable { public: - virtual void load() = 0; // load into memory - virtual void persist() = 0; // persist in memory (then call sync() if platform-appropriate) - virtual void sync() = 0; // save to disk - virtual void clear() = 0; // clear from memory and disk + virtual void load() {}; // load into memory + virtual void persist() {}; // persist in memory (then call sync() if platform-appropriate) + virtual void sync() {}; // save to disk + virtual void clear() {}; // clear from memory and disk virtual ~Settings() {} + public: double longitude = 0; double latitude = 0;