path:
/Operation.hpp
527 B | plain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #ifndef _OPERATION_H
#define _OPERATION_H
#include <functional>
#include <iostream>
#include <vector>
namespace shell4c {
class Operation {
public:
std::string name;
std::string description;
std::function<void(Operation, std::vector<std::string>)> fp;
std::string usage;
Operation(std::string name, std::string description,
std::function<void(Operation, std::vector<std::string>)> fp,
std::string usage)
: name(name), description(description), fp(fp),
usage(usage) {}
};
}
#endif