diff options
author | neodarz <neodarz@neodarz.net> | 2019-09-09 17:17:44 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-09-09 17:17:44 +0200 |
commit | bc6aeaa834d666221171d302d4f101ce65608898 (patch) | |
tree | 9fecfeb46e4189fb4baebf7f1bd1fb1277b36631 /db/uobject.h | |
parent | 5b66830ca806e00f415d6ee83b15e410130de371 (diff) | |
download | umosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.tar.xz umosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.zip |
Refactoring some code to be more readable
Diffstat (limited to '')
-rw-r--r-- | db/uobject.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/db/uobject.h b/db/uobject.h index 0533661..2abf7dd 100644 --- a/db/uobject.h +++ b/db/uobject.h @@ -19,11 +19,19 @@ #include "../shared.h" #include "../db/mongo_access.h" -namespace uobject { +namespace UmosapiService { + +class uobject { + public: + + uobject(); + virtual ~uobject() {}; + std::string retrieveAll(std::string collection, struct json_object* jsonObjects); std::string add(std::string collection, struct json_object* jsonObjects, const char * body); std::string remove(std::string collection, std::string oid, struct json_object* jsonObjects); std::string searchKeyValue(std::string collection, std::string key, std::string value, struct json_object* jsonArray); -} +}; +} #endif |