Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/commandname.h
- This file was added.
// Copyright (c) 2018 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#ifndef BITCOIN_RPC_COMMAND_NAME_H | |||||
#define BITCOIN_RPC_COMMAND_NAME_H | |||||
#include <string> | |||||
#include <univalue.h> | |||||
class RPCCommandName { | |||||
private: | |||||
std::string name; | |||||
public: | |||||
RPCCommandName(std::string nameIn) : name(nameIn){}; | |||||
std::string GetName() const { return name; } | |||||
}; | |||||
#endif // BITCOIN_RPC_COMMAND_NAME_H |