-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCpuMiner.h
45 lines (39 loc) · 1000 Bytes
/
CpuMiner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Created by pedro on 7/4/17.
//
#ifndef HC_MINER_CPUMINER_H
#define HC_MINER_CPUMINER_H
/*
* -----------------------------------------------------------------------
* INCLUDE HEADERS
* -----------------------------------------------------------------------
*/
#include <iostream>
#include <thread>
#include <chrono>
#include <string>
#include <vector>
#include "stdio.h"
#include "RestClient.h"
#include "MiningContext.h"
#include "AbstractMiner.h"
#include "XmlUtil.h"
// =======================================================================
// CLASS CPU MINER
// =======================================================================
/**
* This class represents a CPU performance data mining agent
*/
class CpuMiner : public AbstractMiner{
public:
CpuMiner(int, std::string);
~CpuMiner();
void run();
private:
int _delay;
std::vector<double>* _captures;
RestClient* _restClient;
XmlUtil* _xml;
int fetchCpuData();
};
#endif //HC_MINER_CPUMINER_H