X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=libnavi%2Finclude%2FJsonResponseAnalyzer.h;fp=libnavi%2Finclude%2FJsonResponseAnalyzer.h;h=50b2cd20f2bcaddc0e0aa3bbbaa3eb7a65e0d7be;hb=f14ecdd52975ae365af5ed32648bf55dddacb8d9;hp=0000000000000000000000000000000000000000;hpb=dd61aa309b3a082488c9d3c383c1601fd3efbc2a;p=apps%2Fagl-service-navigation.git diff --git a/libnavi/include/JsonResponseAnalyzer.h b/libnavi/include/JsonResponseAnalyzer.h new file mode 100644 index 0000000..50b2cd2 --- /dev/null +++ b/libnavi/include/JsonResponseAnalyzer.h @@ -0,0 +1,25 @@ +// Copyright 2017 AW SOFTWARE CO.,LTD +// Copyright 2017 AISIN AW CO.,LTD + +#pragma once + +#include +#include +#include +#include +#include + +#include "libnavicore.hpp" + +/** +* @brief JSON response analysis class +*/ +class JsonResponseAnalyzer +{ +public: + static std::map< int32_t, naviapi::variant > AnalyzeResponseGetPosition( std::string& res_json ); + static std::vector< uint32_t > AnalyzeResponseGetAllRoutes( std::string& res_json ); + static uint32_t AnalyzeResponseCreateRoute( std::string& res_json ); + static std::map AnalyzeResponseGetAllSessions( std::string& res_json ); +}; +