-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCommand.h
More file actions
35 lines (26 loc) · 775 Bytes
/
Command.h
File metadata and controls
35 lines (26 loc) · 775 Bytes
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
/*
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_H
#define GPU_PLOT_GENERATOR_COMMAND_H
#include <string>
#include <vector>
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