Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/command.h
Show All 27 Lines | private: | ||||
// messages as well) | // messages as well) | ||||
public: | public: | ||||
RPCCommand(std::string nameIn) : name(nameIn) {} | RPCCommand(std::string nameIn) : name(nameIn) {} | ||||
virtual ~RPCCommand() {} | virtual ~RPCCommand() {} | ||||
virtual UniValue Execute(const UniValue &args) const = 0; | virtual UniValue Execute(const UniValue &args) const = 0; | ||||
std::string GetName() const { return name; }; | const std::string &GetName() const { return name; }; | ||||
}; | }; | ||||
#endif // BITCOIN_RPC_COMMAND_H | #endif // BITCOIN_RPC_COMMAND_H |