IoTeX client
src
api
abstract.h
1
#ifndef ABSTRACT_H
2
#define ABSTRACT_H
3
4
#include "host/host.h"
5
#include "http/http.h"
6
7
namespace
iotex
8
{
9
namespace
api
10
{
11
class
Abstract
12
{
13
public
:
14
void
setHost(
const
char
* newHost,
int
newPort,
const
char
* baseUrl =
nullptr
)
15
{
16
this->_host.set(newHost, newPort, baseUrl);
17
};
18
19
protected
:
20
Host
_host;
21
std::unique_ptr<IHTTP> _http;
22
23
Abstract
() : _http(makeHTTP())
24
{
25
}
26
explicit
Abstract
(
IHTTP
* http) : _http(http)
27
{
28
}
29
};
// class Abstract
30
31
}
// namespace api
32
}
// namespace iotex
33
34
#endif
iotex::Host
Definition:
host.h:17
iotex::IHTTP
Definition:
http.h:40
iotex::api::Abstract
Definition:
abstract.h:12
iotex
Definition:
abi.h:12
Generated by
1.9.2