Bitcoin Core
29.99.0
P2P Digital Currency
src
ipc
libmultiprocess
example
init.h
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
#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
calculator.h
Init
Definition:
init.h:13
Init::makePrinter
virtual std::unique_ptr< Printer > makePrinter()
Definition:
init.h:16
Init::makeCalculator
virtual std::unique_ptr< Calculator > makeCalculator(std::unique_ptr< Printer > printer)
Definition:
init.h:17
Init::~Init
virtual ~Init()=default
printer.h
Generated on Tue Apr 15 2025 20:00:10 for Bitcoin Core by
1.9.4