IoTeX client
base.h
1#ifndef BASE_H
2#define BASE_H
3
4#include "host/host.h"
5#include "http/http.h"
6#include "IoTeXConstants.h"
7
8namespace iotex
9{
10namespace api
11{
12class Base
13{
14 protected:
15 Host& host_;
16 IHTTP* http_;
17
18 template<typename HTTPType>
19 explicit Base(Host& host, HTTPType& http) : host_(host), http_(static_cast<IHTTP*>(&http))
20 {
21 }
22};
23
24} // namespace api
25} // namespace iotex
26
27#endif
Definition: host.h:17
Definition: http.h:40
Definition: base.h:13
Definition: abi.h:12