X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fxapp-utils%2Fxapp_sdl.hpp;h=b8e4e1ae98b0f1b47f584596e801b56947f07d95;hb=23dad813c70c0d79cd1bd16009e00895e6509fd2;hp=647235276f39d1952ee88f7ff4d717f23c90d928;hpb=433b7b2a72c174c75ce2c0c75b225fa0bb813d32;p=ric-app%2Fhw.git diff --git a/src/xapp-utils/xapp_sdl.hpp b/src/xapp-utils/xapp_sdl.hpp index 6472352..b8e4e1a 100644 --- a/src/xapp-utils/xapp_sdl.hpp +++ b/src/xapp-utils/xapp_sdl.hpp @@ -1,7 +1,7 @@ /* ================================================================================== - Copyright (c) 2018-2019 AT&T Intellectual Property. + Copyright (c) 2019-2020 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include #include - +#include using namespace std; using Namespace = std::string; @@ -46,16 +46,12 @@ using Keys = std::set; class XappSDL{ private: - std::unique_ptr sdl; - Namespace ns; -public: + std::string sdl_namespace; - XappSDL(std::string s) { - Namespace temp(s); - ns = temp; - sdl = (shareddatalayer::SyncStorage::create()); - }; - void insert_data(); +public: + XappSDL(std::string ns) { sdl_namespace=ns; } + void get_data(shareddatalayer::SyncStorage *); + bool set_data(shareddatalayer::SyncStorage *); }; #endif /* SRC_XAPP_UTILS_XAPP_SDL_HPP_ */