#include #include #include #include // data type definitions from sdl using Namespace = std::string; using Key = std::string; using Data = std::vector; using DataMap = std::map; using Keys = std::set; int main(int argc, char **argv){ Namespace ns("mcnib"); std::string prefix = ""; if(argc>1){ prefix = argv[1]; } std::unique_ptr sdl(shareddatalayer::SyncStorage::create()); Keys K = sdl->findKeys(ns, prefix); // just the prefix DataMap Dk = sdl->get(ns, K); for(auto si=K.begin();si!=K.end();++si){ std::vector val_v = Dk[(*si)]; // 4 lines to unpack a string char val[val_v.size()+1]; // from Data int i; for(i=0;i