-
Notifications
You must be signed in to change notification settings - Fork 1
/
CommandList.h
39 lines (29 loc) · 939 Bytes
/
CommandList.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
/*
GPU plot generator for Burst coin.
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
Based on the code of the official miner and dcct's plotgen.
*/
#ifndef GPU_PLOT_GENERATOR_COMMAND_LIST_H
#define GPU_PLOT_GENERATOR_COMMAND_LIST_H
#include <string>
#include <vector>
#include <map>
#include <functional>
#include "Command.h"
class CommandList : public Command {
private:
typedef std::map<std::string, std::function<int (CommandList*, const std::vector<std::string>&)>> TypesMap;
TypesMap m_types;
public:
CommandList();
CommandList(const CommandList& p_command);
virtual ~CommandList() throw ();
virtual void help() const;
virtual int execute(const std::vector<std::string>& p_args);
private:
int listPlatforms(const std::vector<std::string>& p_args);
int listDevices(const std::vector<std::string>& p_args);
};
#endif