CCF
Loading...
Searching...
No Matches
ledger_interface.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
6
7#include <filesystem>
8#include <optional>
9
10namespace ccf
11{
13 {
14 public:
16
17 static char const* get_subsystem_name()
18 {
19 return "LedgerReadInterface";
20 }
21
22 virtual std::optional<std::filesystem::path> committed_ledger_path_with_idx(
23 size_t idx) = 0;
24
25 virtual size_t get_init_idx() = 0;
26 };
27}
Definition node_subsystem_interface.h:8
Definition ledger_interface.h:13
virtual std::optional< std::filesystem::path > committed_ledger_path_with_idx(size_t idx)=0
~AbstractReadLedgerSubsystemInterface() override=default
static char const * get_subsystem_name()
Definition ledger_interface.h:17
Definition app_interface.h:13