* init, load, persist, sync, clear * clean up frequent disk syncs which impacted iOS performance * insert disk sync into various iOS/OS X lifecycle events * implement clear * implement save on iOS * cleaner dictionary syntax
27 lines
589 B
C++
27 lines
589 B
C++
#ifndef LLMR_MAP_SETTINGS
|
|
#define LLMR_MAP_SETTINGS
|
|
|
|
#include <llmr/util/noncopyable.hpp>
|
|
|
|
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 ~Settings() {}
|
|
public:
|
|
double longitude = 0;
|
|
double latitude = 0;
|
|
double scale = 0;
|
|
double angle = 0;
|
|
|
|
bool debug = false;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|