5 #include <sdl/syncstorage.hpp>
8 // data type definitions from sdl
9 using Namespace = std::string;
10 using Key = std::string;
11 using Data = std::vector<uint8_t>;
12 using DataMap = std::map<Key, Data>;
13 using Keys = std::set<Key>;
15 int main(int argc, char **argv){
17 Namespace ns("mcnib");
18 std::string prefix = "";
23 std::unique_ptr<shareddatalayer::SyncStorage> sdl(shareddatalayer::SyncStorage::create());
25 Keys K = sdl->findKeys(ns, prefix); // just the prefix
27 DataMap Dk = sdl->get(ns, K);
28 printf("Deleting:\n");
29 for(auto si=K.begin();si!=K.end();++si){
30 printf("\t%s\n",(*si).c_str());