Bug fixes, self test of JSONDB disabled by default.

This commit is contained in:
Adam Ierymenko 2016-11-07 14:01:23 -08:00
parent a454a37a6e
commit 5f63d5039b
2 changed files with 27 additions and 2 deletions

View file

@ -88,6 +88,9 @@ public:
}
}
inline bool operator==(const JSONDB &db) const { return ((_basePath == db._basePath)&&(_db == db._db)); }
inline bool operator!=(const JSONDB &db) const { return (!(*this == db)); }
private:
void _reload(const std::string &p);
bool _isValidObjectName(const std::string &n);
@ -98,6 +101,9 @@ private:
nlohmann::json obj;
uint64_t lastModifiedOnDisk;
uint64_t lastCheck;
inline bool operator==(const _E &e) const { return (obj == e.obj); }
inline bool operator!=(const _E &e) const { return (obj != e.obj); }
};
std::string _basePath;