summaryrefslogtreecommitdiff
path: root/controller/JSONDB.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-01 16:33:34 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-01 16:33:34 -0800
commita577b8d3816069a448a946302048a377b55cd74a (patch)
tree62a625ac0ef302e5b3ff82fed53e830592f22461 /controller/JSONDB.hpp
parent136fddc7f1d965aa5f4e3699195b4333131747a3 (diff)
downloadinfinitytier-a577b8d3816069a448a946302048a377b55cd74a.tar.gz
infinitytier-a577b8d3816069a448a946302048a377b55cd74a.zip
Update how controller handles circuit tests -- save results to filesystem.
Diffstat (limited to 'controller/JSONDB.hpp')
-rw-r--r--controller/JSONDB.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/controller/JSONDB.hpp b/controller/JSONDB.hpp
index 40113655..5b7c5e50 100644
--- a/controller/JSONDB.hpp
+++ b/controller/JSONDB.hpp
@@ -42,8 +42,7 @@ namespace ZeroTier {
class JSONDB
{
public:
- JSONDB(const std::string &basePath,FILE *feed) :
- _feed(feed),
+ JSONDB(const std::string &basePath) :
_basePath(basePath)
{
_reload(_basePath);
@@ -55,6 +54,8 @@ public:
_reload(_basePath);
}
+ bool writeRaw(const std::string &n,const std::string &obj);
+
bool put(const std::string &n,const nlohmann::json &obj);
inline bool put(const std::string &n1,const std::string &n2,const nlohmann::json &obj) { return this->put((n1 + "/" + n2),obj); }
@@ -108,7 +109,6 @@ private:
inline bool operator!=(const _E &e) const { return (obj != e.obj); }
};
- FILE *_feed;
std::string _basePath;
std::map<std::string,_E> _db;
};