From: Sangwan Kwon Date: Thu, 24 Oct 2019 02:21:40 +0000 (+0900) Subject: Rename Property API to VirtualTable X-Git-Tag: accepted/tizen/unified/20200810.122954~176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d926c820fafc08eb88ac7659f1141e6ef946a167;p=platform%2Fcore%2Fsecurity%2Fvist.git Rename Property API to VirtualTable Signed-off-by: Sangwan Kwon --- diff --git a/api/README.md b/api/README.md deleted file mode 100644 index df8eccb..0000000 --- a/api/README.md +++ /dev/null @@ -1,113 +0,0 @@ -# *Programming interface for client* - -# Type-safe getter API -## Senario #1 Get process informations -### Check Processes Struct -```cpp -// api/schema/processes.h -struct Processes { - int pid; - std::string name; - std::string path; - std::string cmdline; -/// ... - std::string user_time; - std::string system_time; - std::string start_time; -}; -``` - -### Use Properties API -```cpp -#include -#include - -Properties processes; -for (auto& p : processes) { - std::cout << p[&Processes::pid] << std::endl; - std::cout << p[&Processes::name] << std::endl; - std::cout << p[&Processes::path] << std::endl; - std::cout << p[&Processes::cmdline] << std::endl; - std::cout << p[&Processes::uid] << std::endl; - std::cout << p[&Processes::gid] << std::endl; - std::cout << p[&Processes::euid] << std::endl; - std::cout << p[&Processes::egid] << std::endl; -} -``` - -## Senario #2 Get system time -### Check Time Struct -```cpp -// api/schema/time.h -struct Time { - int hour; - int minutes; - int seconds; -}; -``` -### Use Property API -```cpp -Property