Line data Source code
1 : // Copyright 2024 Accenture.
2 :
3 : #pragma once
4 :
5 : #include <etl/span.h>
6 : #include <etl/uncopyable.h>
7 :
8 : #include <platform/estdint.h>
9 :
10 : namespace logger
11 : {
12 : class IPersistenceManager : public ::etl::uncopyable
13 : {
14 : public:
15 : virtual bool writeMapping(::etl::span<uint8_t const> const& src) const = 0;
16 : virtual ::etl::span<uint8_t const> readMapping(::etl::span<uint8_t> dest) const = 0;
17 :
18 : protected:
19 2 : IPersistenceManager() {}
20 : };
21 :
22 : } // namespace logger
|