-
Notifications
You must be signed in to change notification settings - Fork 26
/
Command.h
40 lines (29 loc) · 843 Bytes
/
Command.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
/*
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 CRYO_GPU_PLOT_GENERATOR_COMMAND_H
#define CRYO_GPU_PLOT_GENERATOR_COMMAND_H
#include <string>
#include <vector>
namespace cryo {
namespace gpuPlotGenerator {
class Command {
protected:
std::string m_description;
public:
Command(const std::string& p_description);
Command(const Command& p_command);
virtual ~Command() throw ();
inline const std::string& getDescription() const;
virtual void help() const = 0;
virtual int execute(const std::vector<std::string>& p_args) = 0;
};
inline const std::string& Command::getDescription() const {
return m_description;
}
}}
#endif