5G-MAG Reference Tools - MBMS Middleware
src
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
}
MBMS_RT::RpRestClient
Definition:
RpRestClient.h:24
MBMS_RT::RpRestClient::_client
std::unique_ptr< web::http::client::http_client > _client
Definition:
RpRestClient.h:34
MBMS_RT::RpRestClient::getMchInfo
web::json::value getMchInfo()
Definition:
RpRestClient.cpp:34
MBMS_RT::RpRestClient::getStatus
web::json::value getStatus()
Definition:
RpRestClient.cpp:48
MBMS_RT::RpRestClient::~RpRestClient
virtual ~RpRestClient()
Definition:
RpRestClient.h:28
MBMS_RT::RpRestClient::RpRestClient
RpRestClient(const libconfig::Config &cfg)
Definition:
RpRestClient.cpp:27
cfg
static Config cfg
Global configuration object.
Definition:
main.cpp:111
MBMS_RT
Definition:
CacheItems.h:25
Generated by
1.9.1