Bitcoin Core  22.99.0
P2P Digital Currency
echo.cpp
Go to the documentation of this file.
1 // Copyright (c) 2021 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #include <interfaces/echo.h>
6 
7 #include <memory>
8 
9 namespace interfaces {
10 namespace {
11 class EchoImpl : public Echo
12 {
13 public:
14  std::string echo(const std::string& echo) override { return echo; }
15 };
16 } // namespace
17 std::unique_ptr<Echo> MakeEcho() { return std::make_unique<EchoImpl>(); }
18 } // namespace interfaces
interfaces
Definition: dummywallet.cpp:10
echo
static RPCHelpMan echo(const std::string &name)
Definition: misc.cpp:672
echo.h
interfaces::MakeEcho
std::unique_ptr< Echo > MakeEcho()
Return implementation of Echo interface.
Definition: echo.cpp:17