CCF
Loading...
Searching...
No Matches
read_only_store.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
5#include "ccf/tx.h"
6#include "ccf/tx_id.h"
7
8#include <memory>
9
10namespace ccf::kv
11{
13 {
14 public:
15 virtual ~ReadOnlyStore() = default;
16
17 virtual ccf::TxID get_txid() = 0;
19 virtual std::unique_ptr<ccf::kv::ReadOnlyTx> create_read_only_tx_ptr() = 0;
21 };
22
23 using ReadOnlyStorePtr = std::shared_ptr<ReadOnlyStore>;
24}
Definition read_only_store.h:13
virtual std::unique_ptr< ccf::kv::ReadOnlyTx > create_read_only_tx_ptr()=0
virtual ccf::kv::ReadOnlyTx create_read_only_tx()=0
virtual ~ReadOnlyStore()=default
virtual ccf::TxID get_txid()=0
virtual ccf::kv::TxDiff create_tx_diff()=0
Definition tx.h:160
Definition tx.h:131
Definition app_interface.h:19
std::shared_ptr< ReadOnlyStore > ReadOnlyStorePtr
Definition read_only_store.h:23
Definition tx_id.h:44