5G-MAG Reference Tools - MBMS Middleware
RpRestClient.h
Go to the documentation of this file.
1 // 5G-MAG Reference Tools
2 // MBMS Middleware Process
3 //
4 // Copyright (C) 2021 Klaus Kühnhammer (Österreichische Rundfunksender GmbH & Co KG)
5 //
6 // Licensed under the License terms and conditions for use, reproduction, and
7 // distribution of 5G-MAG software (the “License”). You may not use this file
8 // except in compliance with the License. You may obtain a copy of the License at
9 // https://www.5g-mag.com/reference-tools. Unless required by applicable law or
10 // agreed to in writing, software distributed under the License is distributed on
11 // an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 // or implied.
13 //
14 // See the License for the specific language governing permissions and limitations
15 // under the License.
16 //
17 #pragma once
18 
19 #include <string>
20 #include <libconfig.h++>
21 #include "cpprest/http_client.h"
22 
23 namespace MBMS_RT {
24  class RpRestClient {
25  public:
26  RpRestClient(const libconfig::Config& cfg);
27 
28  virtual ~RpRestClient() {};
29 
30  web::json::value getMchInfo();
31  web::json::value getStatus();
32 
33  private:
34  std::unique_ptr<web::http::client::http_client> _client;
35  };
36 }
std::unique_ptr< web::http::client::http_client > _client
Definition: RpRestClient.h:34
web::json::value getMchInfo()
web::json::value getStatus()
RpRestClient(const libconfig::Config &cfg)
static Config cfg
Global configuration object.
Definition: main.cpp:111