Bitcoin Core  31.0.0
P2P Digital Currency
init.h
Go to the documentation of this file.
1 // Copyright (c) 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 #ifndef EXAMPLE_INIT_H
6 #define EXAMPLE_INIT_H
7 
8 #include <calculator.h>
9 #include <memory>
10 #include <printer.h>
11 
12 class Init
13 {
14 public:
15  virtual ~Init() = default;
16  virtual std::unique_ptr<Printer> makePrinter() { return nullptr; }
17  virtual std::unique_ptr<Calculator> makeCalculator(std::unique_ptr<Printer> printer) { return nullptr; }
18 };
19 
20 #endif // EXAMPLE_INIT_H
Definition: init.h:12
virtual ~Init()=default
virtual std::unique_ptr< Calculator > makeCalculator(std::unique_ptr< Printer > printer)
Definition: init.h:17
virtual std::unique_ptr< Printer > makePrinter()
Definition: init.h:16